--- a/hotspot/test/gc/TestVerifySubSet.java Fri Apr 22 17:46:06 2016 +0300
+++ b/hotspot/test/gc/TestVerifySubSet.java Fri Apr 22 17:49:15 2016 +0300
@@ -34,6 +34,7 @@
import jdk.test.lib.ProcessTools;
import java.util.ArrayList;
import java.util.Collections;
+import jdk.test.lib.Utils;
class RunSystemGC {
public static void main(String args[]) throws Exception {
@@ -42,19 +43,11 @@
}
public class TestVerifySubSet {
- private static String[] getTestJavaOpts() {
- String testVmOptsStr = System.getProperty("test.java.opts");
- if (!testVmOptsStr.isEmpty()) {
- return testVmOptsStr.split(" ");
- } else {
- return new String[] {};
- }
- }
private static OutputAnalyzer runTest(String subset) throws Exception {
ArrayList<String> vmOpts = new ArrayList();
- Collections.addAll(vmOpts, getTestJavaOpts());
+ Collections.addAll(vmOpts, Utils.getFilteredTestJavaOpts("-Xlog.*"));
Collections.addAll(vmOpts, new String[] {"-XX:+UnlockDiagnosticVMOptions",
"-XX:+VerifyBeforeGC",
"-XX:+VerifyAfterGC",