jdk/test/tools/launcher/ExecutionEnvironment.java
changeset 10053 43930b0d0564
parent 9244 84d85c90d5db
child 11687 f13cadbb0bb5
--- a/jdk/test/tools/launcher/ExecutionEnvironment.java	Fri Jun 17 10:34:44 2011 -0700
+++ b/jdk/test/tools/launcher/ExecutionEnvironment.java	Fri Jun 17 15:17:01 2011 -0700
@@ -299,8 +299,8 @@
 
         if (TestHelper.is32Bit) {
             tr = TestHelper.doExec(TestHelper.javaCmd, "-client", "-version");
-            if (!tr.matches("Java.*Client VM.*")) {
-                System.out.println("FAIL: the expected vm -client did launch");
+            if (!tr.matches(".*Client VM.*")) {
+                System.out.println("FAIL: the expected vm -client did not launch");
                 System.out.println(tr);
                 errors++;
             } else {
@@ -308,8 +308,8 @@
             }
         }
         tr = TestHelper.doExec(TestHelper.javaCmd, "-server", "-version");
-        if (!tr.matches("Java.*Server VM.*")) {
-            System.out.println("FAIL: the expected vm -server did launch");
+        if (!tr.matches(".*Server VM.*")) {
+            System.out.println("FAIL: the expected vm -server did not launch");
             System.out.println(tr);
             errors++;
         } else {