You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2007/03/29 10:49:26 UTC
[jira] Created: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
[drlvm][kernel tests] Two intermittently failing tests should be fixed.
-----------------------------------------------------------------------
Key: HARMONY-3520
URL: https://issues.apache.org/jira/browse/HARMONY-3520
Project: Harmony
Issue Type: Bug
Components: build - test - ci
Reporter: Elena Semukhina
I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
I think they reveal the tests' problems.
The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
The second test needs waiting time to be increased.
One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Semukhina updated HARMONY-3520:
-------------------------------------
Patch Info: [Patch Available]
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Attachments: H-3520_kernel_tests.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Semukhina updated HARMONY-3520:
-------------------------------------
Attachment: H-3520_kernel_tests.patch
The patch attached.
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Attachments: H-3520_kernel_tests.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Varlamov reassigned HARMONY-3520:
----------------------------------------
Assignee: Alexey Varlamov
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Assigned To: Alexey Varlamov
> Attachments: H-3520_kernel_tests.patch, H-3520_kernel_tests_2.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elena Semukhina updated HARMONY-3520:
-------------------------------------
Attachment: H-3520_kernel_tests_2.patch
Alexey, your comment is quite reasonable. I attached the updated patch.
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Attachments: H-3520_kernel_tests.patch, H-3520_kernel_tests_2.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Varlamov closed HARMONY-3520.
------------------------------------
Resolution: Fixed
Applied at r525064.
I've cleaned the ClassLoaderTest further: using getResourceAsStream() instead of manual FileInputStream construction, avoiding catching unexpected errors, etc.
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Assigned To: Alexey Varlamov
> Attachments: H-3520_kernel_tests.patch, H-3520_kernel_tests_2.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3520) [drlvm][kernel tests] Two
intermittently failing tests should be fixed.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485995 ]
Alexey Varlamov commented on HARMONY-3520:
------------------------------------------
Re ClassLoaderTest, is there any reason to construct paths to classes by hand? It is highly vulnerable against build structure changes and simply clutters code. What about using ClassLoader.getResource() or smth similar?
> [drlvm][kernel tests] Two intermittently failing tests should be fixed.
> -----------------------------------------------------------------------
>
> Key: HARMONY-3520
> URL: https://issues.apache.org/jira/browse/HARMONY-3520
> Project: Harmony
> Issue Type: Bug
> Components: build - test - ci
> Reporter: Elena Semukhina
> Attachments: H-3520_kernel_tests.patch
>
>
> I see intermittent failures of ThreadTest.testInterrupt_Waiting () and ThreadRTest.testStopFinally().
> I think they reveal the tests' problems.
> The first test tries to interrupt a waiting thread and fails because the thread doesn't receive InterruptedException. I added a check that the thread is in the TIMED_WAITING state and only interrupt after this.
> The second test needs waiting time to be increased.
> One more test in the patch is ClassLoaderTest. It actually did not work until now because it silently exited at the beginning. I fixed the test so that it sets the corect path to a file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.