diff test/runtime/CommandLine/BooleanFlagWithInvalidValue.java @ 8807:1feda2e9f044

8007982: some runtime/CommandLine/ tests fail on 32-bit platforms Summary: Changed tests to use platform independent flags Reviewed-by: collins, hseigel, zgu
author ctornqvi
date Wed, 20 Mar 2013 20:40:57 +0100
parents 3a88007634b0
children
line wrap: on
line diff
--- a/test/runtime/CommandLine/BooleanFlagWithInvalidValue.java	Wed Mar 20 12:20:10 2013 -0400
+++ b/test/runtime/CommandLine/BooleanFlagWithInvalidValue.java	Wed Mar 20 20:40:57 2013 +0100
@@ -33,17 +33,17 @@
 public class BooleanFlagWithInvalidValue {
   public static void main(String[] args) throws Exception {
     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
-        "-XX:+UseLargePages=8", "-version");
+        "-XX:+PrintWarnings=8", "-version");
 
     OutputAnalyzer output = new OutputAnalyzer(pb.start());
-    output.shouldContain("Improperly specified VM option 'UseLargePages=8'");
+    output.shouldContain("Improperly specified VM option 'PrintWarnings=8'");
     output.shouldHaveExitValue(1);
 
     pb = ProcessTools.createJavaProcessBuilder(
-        "-XX:-UseLargePages=8", "-version");
+        "-XX:-PrintWarnings=8", "-version");
 
     output = new OutputAnalyzer(pb.start());
-    output.shouldContain("Improperly specified VM option 'UseLargePages=8'");
+    output.shouldContain("Improperly specified VM option 'PrintWarnings=8'");
     output.shouldHaveExitValue(1);
   }
 }