Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084952 | emb-9 | Yekaterina Kantserova | P4 | Resolved | Fixed | team |
Test
com/sun/jdi/NoLaunchOptionTest.java
failed during promotion testting for 6u10b33. Link to result:
http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK6UR/PROMOTION/VM/6u10/b33/081002025928/vm/WINDOWS-VISTA/server/batch/WINDOWS-VISTA_server_batch_JDI_REGRESSION/workDir/com/sun/jdi/NoLaunchOptionTest.jtr
Test throw exceptin at line 116:
java.lang.Exception: Test failed: unspecified test failure
at NoLaunchOptionTest.main(NoLaunchOptionTest.java:116)
Here is part of the test throwing this exception:
NoLaunchOptionTest myTest = new NoLaunchOptionTest();
String results [] = myTest.run(VMConnection.insertDebuggeeVMOptions(cmds));
if ((results[RETSTAT].equals("1")) &&
(results[STDERR].startsWith("ERROR:"))) {
System.out.println("Test passed: status = 1 with warning messages " +
"is expected and normal for this test");
} else {
throw new Exception("Test failed: unspecified test failure");
}
Test expects that VM error output is started with "ERROR:", but testing was executed with option CMSPermGenSweepingEnabled and in this case VM error output is following:
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
ERROR: JDWP Specify launch=<command line> when using onthrow or onuncaught suboption: -agentlib:jdwp=transport=dt_socket,address=8000,onthrow=java.lang.ClassNotFoundException,suspend=n
Actually output contains line which is expected by the test, but this line isn't first in the output. It would be good to modify test to avoid such failures (just change 'startsWith' to 'contains').
com/sun/jdi/NoLaunchOptionTest.java
failed during promotion testting for 6u10b33. Link to result:
http://sqeweb.sfbay.sun.com/nfs/results/vm/gtee/JDK6UR/PROMOTION/VM/6u10/b33/081002025928/vm/WINDOWS-VISTA/server/batch/WINDOWS-VISTA_server_batch_JDI_REGRESSION/workDir/com/sun/jdi/NoLaunchOptionTest.jtr
Test throw exceptin at line 116:
java.lang.Exception: Test failed: unspecified test failure
at NoLaunchOptionTest.main(NoLaunchOptionTest.java:116)
Here is part of the test throwing this exception:
NoLaunchOptionTest myTest = new NoLaunchOptionTest();
String results [] = myTest.run(VMConnection.insertDebuggeeVMOptions(cmds));
if ((results[RETSTAT].equals("1")) &&
(results[STDERR].startsWith("ERROR:"))) {
System.out.println("Test passed: status = 1 with warning messages " +
"is expected and normal for this test");
} else {
throw new Exception("Test failed: unspecified test failure");
}
Test expects that VM error output is started with "ERROR:", but testing was executed with option CMSPermGenSweepingEnabled and in this case VM error output is following:
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
ERROR: JDWP Specify launch=<command line> when using onthrow or onuncaught suboption: -agentlib:jdwp=transport=dt_socket,address=8000,onthrow=java.lang.ClassNotFoundException,suspend=n
Actually output contains line which is expected by the test, but this line isn't first in the output. It would be good to modify test to avoid such failures (just change 'startsWith' to 'contains').
- backported by
-
JDK-8084952 Test com/sun/jdi/NoLaunchOptionTest.java may erroneously fail
-
- Resolved
-