mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4020 Test ObsoleteFlagErrorMessage fails after +IgnoreUnrecognizedVMOptions has become the default
(cherry picked from commitae5963a094) (cherry picked from commit5b27cdbd14)
This commit is contained in:
@@ -42,6 +42,7 @@ public class ObsoleteFlagErrorMessage {
|
||||
|
||||
// Case 1: Newly obsolete flags with extra junk appended should not be treated as newly obsolete (8060449)
|
||||
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
|
||||
"-XX:-IgnoreUnrecognizedVMOptions",
|
||||
"-XX:" + flag + "PlusJunk", "-version");
|
||||
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
@@ -50,6 +51,7 @@ public class ObsoleteFlagErrorMessage {
|
||||
|
||||
// Case 2: Newly obsolete flags should be recognized as newly obsolete (8073989)
|
||||
ProcessBuilder pb2 = ProcessTools.createLimitedTestJavaProcessBuilder(
|
||||
"-XX:-IgnoreUnrecognizedVMOptions",
|
||||
"-XX:+" + flag, "-version");
|
||||
|
||||
OutputAnalyzer output2 = new OutputAnalyzer(pb2.start());
|
||||
|
||||
Reference in New Issue
Block a user