# HG changeset patch # User sjohanss # Date 1421067354 -3600 # Mon Jan 12 13:55:54 2015 +0100 # Node ID 4184d1bdffa0809d91a74f6a6077f0c9024f765d # Parent 4f7805dda8bc8ce37fb7f49157ec3f81cdc8914e 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: diff --git a/test/gc/TestNUMAPageSize.java b/test/gc/TestNUMAPageSize.java --- a/test/gc/TestNUMAPageSize.java +++ b/test/gc/TestNUMAPageSize.java @@ -21,17 +21,24 @@ * 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); } }