diff --git a/test/tools/launcher/ExecutionEnvironment.java b/test/tools/launcher/ExecutionEnvironment.java index fec9f6a0ba8b9cf7c57133f0f3474231263523d7..720df5e126e5c6da286659662535c399e7f6e602 100644 --- a/test/tools/launcher/ExecutionEnvironment.java +++ b/test/tools/launcher/ExecutionEnvironment.java @@ -299,8 +299,8 @@ public class ExecutionEnvironment { 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 @@ public class ExecutionEnvironment { } } 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 { diff --git a/test/tools/launcher/VersionCheck.java b/test/tools/launcher/VersionCheck.java index a1bca7593d17732cd417246dc9afafd27a1103c9..acef7bbea00009c25bb9d8967b1259e653f69935 100644 --- a/test/tools/launcher/VersionCheck.java +++ b/test/tools/launcher/VersionCheck.java @@ -132,7 +132,7 @@ public class VersionCheck { StringBuilder out = new StringBuilder(); // remove the HotSpot line for (String x : alist) { - if (!x.contains("HotSpot")) { + if (!x.matches(".*Client.*VM.*|.*Server.*VM.*")) { out = out.append(x + "\n"); } }