changeset 4355:e373b4c95b4b

7043125: TEST: tools/launcher/VersionCheck.java fails just against openjdk7 (b141 & b138-nightly) promoted Reviewed-by: darcy
author ksrini
date Fri, 17 Jun 2011 15:17:01 -0700
parents 85480980cd5e
children b29888e74be3
files test/tools/launcher/ExecutionEnvironment.java test/tools/launcher/VersionCheck.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/launcher/ExecutionEnvironment.java	Fri Jun 17 10:34:44 2011 -0700
+++ b/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 {
--- a/test/tools/launcher/VersionCheck.java	Fri Jun 17 10:34:44 2011 -0700
+++ b/test/tools/launcher/VersionCheck.java	Fri Jun 17 15:17:01 2011 -0700
@@ -132,7 +132,7 @@
         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");
             }
         }