equal
deleted
inserted
replaced
43 output.shouldContain("Unrecognized VM option 'SafepointSpinBeforeYieldPlusJunk'"); // Must identify bad option. |
43 output.shouldContain("Unrecognized VM option 'SafepointSpinBeforeYieldPlusJunk'"); // Must identify bad option. |
44 output.shouldHaveExitValue(1); |
44 output.shouldHaveExitValue(1); |
45 |
45 |
46 // Case 2: Newly obsolete flags should be recognized as newly obsolete (8073989) |
46 // Case 2: Newly obsolete flags should be recognized as newly obsolete (8073989) |
47 ProcessBuilder pb2 = ProcessTools.createJavaProcessBuilder( |
47 ProcessBuilder pb2 = ProcessTools.createJavaProcessBuilder( |
48 "-XX:+SafepointSpinBeforeYield", "-version"); |
48 "-XX:+EmitSync", "-version"); |
49 |
49 |
50 OutputAnalyzer output2 = new OutputAnalyzer(pb2.start()); |
50 OutputAnalyzer output2 = new OutputAnalyzer(pb2.start()); |
51 output2.shouldContain("Ignoring option").shouldContain("support was removed"); |
51 output2.shouldContain("Ignoring option").shouldContain("support was removed"); |
52 output2.shouldContain("SafepointSpinBeforeYield"); |
52 output2.shouldContain("EmitSync"); |
53 } |
53 } |
54 } |
54 } |