Test com/sun/jdi/NoLaunchOptionTest.java may erroneously fail

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 6u10
    • Component/s: core-svc
    • b66
    • generic
    • generic

        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').

              Assignee:
              Yekaterina Kantserova (Inactive)
              Reporter:
              Semen Boikov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: