8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java
authorallwin
Thu, 10 Oct 2013 10:14:54 +0200
changeset 20764 ad561abdaf7b
parent 20763 95cf1b4945f4
child 20765 43ac7ab49d5a
8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar
jdk/test/com/sun/jdi/NoLaunchOptionTest.java
--- a/jdk/test/com/sun/jdi/NoLaunchOptionTest.java	Thu Oct 10 09:38:06 2013 +0200
+++ b/jdk/test/com/sun/jdi/NoLaunchOptionTest.java	Thu Oct 10 10:14:54 2013 +0200
@@ -142,7 +142,7 @@
         NoLaunchOptionTest myTest = new NoLaunchOptionTest();
         String results [] = myTest.run(VMConnection.insertDebuggeeVMOptions(cmds));
         if ((results[RETSTAT].equals("1")) &&
-            (results[STDERR].startsWith("ERROR:"))) {
+            (results[STDERR].contains("ERROR:"))) {
             System.out.println("Test passed: status = 1 with warning messages " +
                                "is expected and normal for this test");
         } else {