This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81783 - 'Some suites did not finish correctly'
Summary: 'Some suites did not finish correctly'
Status: VERIFIED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 09:54 UTC by ehucka
Modified: 2006-10-23 16:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-08-03 09:54:01 UTC
Is it possible to get more information about not finished tests?
My tests randomly failed by message:

[printSummary]  TestBag 'Monitor tests' in module profiler/libs/jfluid has
encountered an unexpected failure : Some suites did not finish correctly:

[printSummary]  Report URL: file:/space/test4u2/testrun/results/index.html

but there is not any exception, error log or anything. Status of the test is
unknown.
Comment 1 Jiri Skrivanek 2006-08-03 10:43:01 UTC
Look at 'Logs from build scripts'. Your test probably killed VM, called
System.exit() or something like that. I think it is impossible to detect and
report such behaviour.
Comment 2 ehucka 2006-08-03 11:12:05 UTC
The log contains only messages of the test without teardown log:
...
[jvmTestRunner] STATUS: set status FINISHED 

jvm_execution:

report:
[getResultsDirs] Getting fresh testrun and testbag directories
...

But there is not messgaes about finish of test or jvm:
...
[jvmTestRunner] - test suite
com.sun.tools.profiler.tests.jfluid.memory.BasicTest passed: 9 test(s)
[jvmTestRunner] - time elapsed: 97.549 seconds

[jvmTestRunner] VM finished
...

The test does not call System.exit nor other kill command. It only start other
JVM which call System.exit but other tests in the suite do the same.

Is it possible to use Runtime.addShutdownHook in tests executors to inform about
exiting tests?
Comment 3 Jiri Skrivanek 2006-08-03 14:02:34 UTC
Maybe we can use Runtime.addShutdownHook somehow.
Comment 4 ehucka 2006-09-14 11:03:52 UTC
verified