mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-18 23:19:33 +00:00
8068026: [TESTBUG] Check for -client in gc/g1/TestHumongousCodeCacheRoots.java
Skip test if -client is not supported. Reviewed-by: jwilhelm, simonis
This commit is contained in:
parent
6606238d9b
commit
71d4cfb1ad
@ -116,7 +116,14 @@ public class TestHumongousCodeCacheRoots {
|
||||
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(finalargs.toArray(new String[0]));
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldHaveExitValue(0);
|
||||
try {
|
||||
output.shouldHaveExitValue(0);
|
||||
} catch (RuntimeException e) {
|
||||
// It's ok if there is no client vm in the jdk.
|
||||
if (output.firstMatch("Unrecognized option: -client") == null) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user