jdk/test/tools/launcher/ExecutionEnvironment.java
changeset 10204 bbd2c5e0ce05
parent 10053 43930b0d0564
child 11687 f13cadbb0bb5
--- a/jdk/test/tools/launcher/ExecutionEnvironment.java	Fri Aug 05 19:41:05 2011 -0700
+++ b/jdk/test/tools/launcher/ExecutionEnvironment.java	Wed Jul 05 17:48:11 2017 +0200
@@ -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 {