8263556: remove @modules java.base from tests

Reviewed-by: dcubed, naoto, iris
This commit is contained in:
Igor Ignatyev 2021-03-15 17:05:28 +00:00
parent d6b5e1809b
commit d825198e55
13 changed files with 8 additions and 21 deletions

View File

@ -26,7 +26,6 @@ package gc;
/* /*
* @test TestConcurrentGCBreakpoints * @test TestConcurrentGCBreakpoints
* @summary Test of WhiteBox concurrent GC control. * @summary Test of WhiteBox concurrent GC control.
* @modules java.base
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox

View File

@ -28,7 +28,6 @@ package gc.TestJNIWeak;
* @summary Test return of JNI weak global refs during concurrent * @summary Test return of JNI weak global refs during concurrent
* marking, verifying the use of the load barrier to keep the * marking, verifying the use of the load barrier to keep the
* referent alive. * referent alive.
* @modules java.base
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox

View File

@ -27,7 +27,6 @@ package gc;
* @bug 8240696 * @bug 8240696
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.

View File

@ -29,7 +29,6 @@ package gc;
* @requires vm.gc != "null" * @requires vm.gc != "null"
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.

View File

@ -27,7 +27,6 @@ package gc;
* @requires vm.gc != "Epsilon" * @requires vm.gc != "Epsilon"
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.

View File

@ -27,7 +27,6 @@ package gc;
* @requires vm.gc != "Shenandoah" | vm.opt.ShenandoahGCMode != "iu" * @requires vm.gc != "Shenandoah" | vm.opt.ShenandoahGCMode != "iu"
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ package gc.arguments;
* @summary Test argument processing for -XX:+AggressiveHeap. * @summary Test argument processing for -XX:+AggressiveHeap.
* @library /test/lib * @library /test/lib
* @library / * @library /
* @modules java.base java.management * @modules java.management
* @run driver gc.arguments.TestAggressiveHeap * @run driver gc.arguments.TestAggressiveHeap
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,6 @@ package gc.g1;
* @summary Test that issuing a periodic collection while the GC locker is * @summary Test that issuing a periodic collection while the GC locker is
* held does not crash the VM. * held does not crash the VM.
* @requires vm.gc.G1 * @requires vm.gc.G1
* @modules java.base
* @run main/othervm/native * @run main/othervm/native
* -Xbootclasspath/a:. * -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI

View File

@ -27,7 +27,6 @@ package gc.shenandoah;
* @requires vm.gc.Shenandoah * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.
@ -40,7 +39,6 @@ package gc.shenandoah;
* @requires vm.gc.Shenandoah * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @build sun.hotspot.WhiteBox * @build sun.hotspot.WhiteBox
* @modules java.base
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox * @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm * @run main/othervm
* -Xbootclasspath/a:. * -Xbootclasspath/a:.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,6 @@
* @test * @test
* @bug 8166188 * @bug 8166188
* @summary Test call of native function with JNI weak global ref. * @summary Test call of native function with JNI weak global ref.
* @modules java.base
* @run main/othervm/native CallWithJNIWeak * @run main/othervm/native CallWithJNIWeak
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,6 @@
* @bug 8166188 * @bug 8166188
* @requires vm.opt.ExplicitGCInvokesConcurrent != true * @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @summary Test return of JNI weak global refs from native calls. * @summary Test return of JNI weak global refs from native calls.
* @modules java.base
* @run main/othervm/native -Xint ReturnJNIWeak * @run main/othervm/native -Xint ReturnJNIWeak
* @run main/othervm/native -Xcomp ReturnJNIWeak * @run main/othervm/native -Xcomp ReturnJNIWeak
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,6 @@
* 6344623 6369500 6534606 6282094 6286592 6476425 5063507 6469160 6476168 * 6344623 6369500 6534606 6282094 6286592 6476425 5063507 6469160 6476168
* 8059175 8204229 * 8059175 8204229
* *
* @modules java.base
* @run shell/timeout=240 Basic.sh * @run shell/timeout=240 Basic.sh
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -38,7 +38,6 @@ import static org.testng.Assert.assertTrue;
* @test * @test
* @bug 8226530 * @bug 8226530
* @summary ZIP File System tests that leverage DirectoryStream * @summary ZIP File System tests that leverage DirectoryStream
* @modules java.base
* @compile Zip64SizeTest.java * @compile Zip64SizeTest.java
* @run testng Zip64SizeTest * @run testng Zip64SizeTest
*/ */
@ -144,4 +143,4 @@ public class Zip64SizeTest {
public void tearDown() throws IOException { public void tearDown() throws IOException {
deleteFiles(); deleteFiles();
} }
} }