< prev index next >
test/gc/TestNUMAPageSize.java
Print this page
rev 7623 : 8040935: -XX:+AggressiveOpts broken: GC triggered before VM initialization completed on several tests
Summary: Changed test to not be affected by external options.
Reviewed-by:
@@ -19,19 +19,26 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
+import com.oracle.java.testlibrary.OutputAnalyzer;
+import com.oracle.java.testlibrary.ProcessTools;
+
/**
* @test TestNUMAPageSize
* @summary Make sure that start up with NUMA support does not cause problems.
* @bug 8061467
* @key gc
* @key regression
- * @run main/othervm -Xmx8M -XX:+UseNUMA TestNUMAPageSize
+ * @library /testlibrary
+ * @run driver TestNUMAPageSize
*/
public class TestNUMAPageSize {
public static void main(String args[]) throws Exception {
- // nothing to do
+ String[] opts = {"-Xmx8M", "-XX:+UseNUMA", "-version"};
+ ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(opts);
+ OutputAnalyzer output = new OutputAnalyzer(pb.start());
+ output.shouldHaveExitValue(0);
}
}
< prev index next >