changeset 8359:998560cccefc

8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar
author allwin
date Thu, 10 Oct 2013 10:14:54 +0200
parents 6aa637dde16e
children 254173b48dcb
files test/com/sun/jdi/NoLaunchOptionTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/NoLaunchOptionTest.java	Thu Oct 10 09:38:06 2013 +0200
+++ b/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 {