< prev index next >
test/gc/g1/TestHumongousCodeCacheRoots.java
Print this page
rev 7590 : 8068026: [TESTBUG] Check for -client in gc/g1/TestHumongousCodeCacheRoots.java
*** 114,124 ****
--- 114,131 ----
finalargs.add(classname);
finalargs.addAll(Arrays.asList(arguments));
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(finalargs.toArray(new String[0]));
OutputAnalyzer output = new OutputAnalyzer(pb.start());
+ 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;
}
public static void runTest(String compiler, String[] other) throws Exception {
< prev index next >