jdk/test/tools/launcher/ExecutionEnvironment.java
changeset 10204 bbd2c5e0ce05
parent 10053 43930b0d0564
child 11687 f13cadbb0bb5
equal deleted inserted replaced
10203:cca843a7d258 10204:bbd2c5e0ce05
   297 
   297 
   298         TestHelper.TestResult tr = null;
   298         TestHelper.TestResult tr = null;
   299 
   299 
   300         if (TestHelper.is32Bit) {
   300         if (TestHelper.is32Bit) {
   301             tr = TestHelper.doExec(TestHelper.javaCmd, "-client", "-version");
   301             tr = TestHelper.doExec(TestHelper.javaCmd, "-client", "-version");
   302             if (!tr.matches("Java.*Client VM.*")) {
   302             if (!tr.matches(".*Client VM.*")) {
   303                 System.out.println("FAIL: the expected vm -client did launch");
   303                 System.out.println("FAIL: the expected vm -client did not launch");
   304                 System.out.println(tr);
   304                 System.out.println(tr);
   305                 errors++;
   305                 errors++;
   306             } else {
   306             } else {
   307                 passes++;
   307                 passes++;
   308             }
   308             }
   309         }
   309         }
   310         tr = TestHelper.doExec(TestHelper.javaCmd, "-server", "-version");
   310         tr = TestHelper.doExec(TestHelper.javaCmd, "-server", "-version");
   311         if (!tr.matches("Java.*Server VM.*")) {
   311         if (!tr.matches(".*Server VM.*")) {
   312             System.out.println("FAIL: the expected vm -server did launch");
   312             System.out.println("FAIL: the expected vm -server did not launch");
   313             System.out.println(tr);
   313             System.out.println(tr);
   314             errors++;
   314             errors++;
   315         } else {
   315         } else {
   316             passes++;
   316             passes++;
   317         }
   317         }