Mercurial > hg > truffle
comparison test/runtime/CommandLine/NonBooleanFlagWithInvalidBooleanPrefix.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 |
comparison
equal
deleted
inserted
replaced
8806:79259e97a072 | 8807:1feda2e9f044 |
---|---|
31 import com.oracle.java.testlibrary.*; | 31 import com.oracle.java.testlibrary.*; |
32 | 32 |
33 public class NonBooleanFlagWithInvalidBooleanPrefix { | 33 public class NonBooleanFlagWithInvalidBooleanPrefix { |
34 public static void main(String[] args) throws Exception { | 34 public static void main(String[] args) throws Exception { |
35 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( | 35 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( |
36 "-XX:-ObjectAlignmentInBytes=16", "-version"); | 36 "-XX:-MaxRAMFraction=16", "-version"); |
37 | 37 |
38 OutputAnalyzer output = new OutputAnalyzer(pb.start()); | 38 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
39 output.shouldContain("Unexpected +/- setting in VM option 'ObjectAlignmentInBytes=16'"); | 39 output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMFraction=16'"); |
40 output.shouldHaveExitValue(1); | 40 output.shouldHaveExitValue(1); |
41 | 41 |
42 pb = ProcessTools.createJavaProcessBuilder( | 42 pb = ProcessTools.createJavaProcessBuilder( |
43 "-XX:+ObjectAlignmentInBytes=16", "-version"); | 43 "-XX:+MaxRAMFraction=16", "-version"); |
44 | 44 |
45 output = new OutputAnalyzer(pb.start()); | 45 output = new OutputAnalyzer(pb.start()); |
46 output.shouldContain("Unexpected +/- setting in VM option 'ObjectAlignmentInBytes=16'"); | 46 output.shouldContain("Unexpected +/- setting in VM option 'MaxRAMFraction=16'"); |
47 output.shouldHaveExitValue(1); | 47 output.shouldHaveExitValue(1); |
48 | 48 |
49 } | 49 } |
50 } | 50 } |