# HG changeset patch # User allwin # Date 1381392894 -7200 # Node ID ad561abdaf7bbd9ec53db4713b63e8d20831fe76 # Parent 95cf1b4945f4ed8924c2877f3b1ae26df61a3799 8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar diff -r 95cf1b4945f4 -r ad561abdaf7b 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 {