8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java
Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar
--- 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 {