提交 0059c28b 编写于 作者: A allwin

8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java

Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar
上级 3cdcc8bd
...@@ -142,7 +142,7 @@ public class NoLaunchOptionTest extends Object { ...@@ -142,7 +142,7 @@ public class NoLaunchOptionTest extends Object {
NoLaunchOptionTest myTest = new NoLaunchOptionTest(); NoLaunchOptionTest myTest = new NoLaunchOptionTest();
String results [] = myTest.run(VMConnection.insertDebuggeeVMOptions(cmds)); String results [] = myTest.run(VMConnection.insertDebuggeeVMOptions(cmds));
if ((results[RETSTAT].equals("1")) && if ((results[RETSTAT].equals("1")) &&
(results[STDERR].startsWith("ERROR:"))) { (results[STDERR].contains("ERROR:"))) {
System.out.println("Test passed: status = 1 with warning messages " + System.out.println("Test passed: status = 1 with warning messages " +
"is expected and normal for this test"); "is expected and normal for this test");
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册