8155086: Replace usage of -Djdk.launcher.limitmods in tests with -limitmods
authorchegar
Tue, 24 May 2016 09:18:40 +0100
changeset 38474 db344a94eb44
parent 38473 39f3b8618e2f
child 38475 ec5fd6636aae
8155086: Replace usage of -Djdk.launcher.limitmods in tests with -limitmods Reviewed-by: alanb
jdk/test/java/net/SocketOption/OptionsTest.java
jdk/test/java/net/SocketOption/UnsupportedOptionsTest.java
jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java
jdk/test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java
jdk/test/java/nio/channels/SocketChannel/SocketOptionTests.java
--- a/jdk/test/java/net/SocketOption/OptionsTest.java	Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/net/SocketOption/OptionsTest.java	Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
  * @bug 8036979 8072384 8044773
  * @run main/othervm -Xcheck:jni OptionsTest
  * @run main/othervm -Xcheck:jni -Djava.net.preferIPv4Stack=true OptionsTest
- * @run main/othervm -Djdk.launcher.limitmods=java.base OptionsTest
+ * @run main/othervm -limitmods java.base OptionsTest
  */
 
 import java.lang.reflect.Method;
--- a/jdk/test/java/net/SocketOption/UnsupportedOptionsTest.java	Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/net/SocketOption/UnsupportedOptionsTest.java	Tue May 24 09:18:40 2016 +0100
@@ -33,7 +33,7 @@
  * @summary Test checks that UnsupportedOperationException for unsupported
  * SOCKET_OPTIONS is thrown by both getOption() and setOption() methods.
  * @run main UnsupportedOptionsTest
- * @run main/othervm -Djdk.launcher.limitmods=java.base UnsupportedOptionsTest
+ * @run main/othervm -limitmods java.base UnsupportedOptionsTest
  */
 
 public class UnsupportedOptionsTest {
--- a/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java	Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/DatagramChannel/SocketOptionTests.java	Tue May 24 09:18:40 2016 +0100
@@ -25,7 +25,7 @@
  * @bug 4640544 8044773
  * @summary Unit test for setOption/getOption/options methods
  * @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
  */
 
 import java.nio.*;
--- a/jdk/test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java	Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/ServerSocketChannel/SocketOptionTests.java	Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
  * @summary Unit test for ServerSocketChannel setOption/getOption/options
  *          methods.
  * @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
  */
 
 import java.nio.*;
--- a/jdk/test/java/nio/channels/SocketChannel/SocketOptionTests.java	Tue May 24 15:58:58 2016 +0800
+++ b/jdk/test/java/nio/channels/SocketChannel/SocketOptionTests.java	Tue May 24 09:18:40 2016 +0100
@@ -26,7 +26,7 @@
  * @summary Unit test to check SocketChannel setOption/getOption/options
  *          methods.
  * @run main SocketOptionTests
- * @run main/othervm -Djdk.launcher.limitmods=java.base SocketOptionTests
+ * @run main/othervm -limitmods java.base SocketOptionTests
  */
 
 import java.nio.*;