Prior to 8221481 (Reimplement the Legacy Socket API), these tests were
run with the plain socket impl. They should be run with both
system-default SocketImpls to ensure that the impls behave as expected.

$ hg diff
diff --git a/test/jdk/java/net/SocketOption/AfterClose.java 
b/test/jdk/java/net/SocketOption/AfterClose.java
--- a/test/jdk/java/net/SocketOption/AfterClose.java
+++ b/test/jdk/java/net/SocketOption/AfterClose.java
@@ -26,6 +26,7 @@
  * @bug 8224477
  * @summary Ensures that IOException is thrown after the socket is closed
  * @run testng AfterClose
+ * @run testng/othervm -Djdk.net.usePlainSocketImpl AfterClose
  */

 import java.io.IOException;
diff --git a/test/jdk/java/net/SocketOption/NullsAndBadValues.java 
b/test/jdk/java/net/SocketOption/NullsAndBadValues.java
--- a/test/jdk/java/net/SocketOption/NullsAndBadValues.java
+++ b/test/jdk/java/net/SocketOption/NullsAndBadValues.java
@@ -26,6 +26,7 @@
  * @bug 8224477
  * @summary Basic test for NPE, UOE, and IAE for get/setOption
  * @run testng NullsAndBadValues
+ * @run testng/othervm -Djdk.net.usePlainSocketImpl NullsAndBadValues
  * @run testng/othervm -Dsun.net.useExclusiveBind=false NullsAndBadValues
  */

-Chris.

Reply via email to