8225424: Add jdk.net.usePlainSocketImpl runs to a couple of tests
Reviewed-by: alanb
--- a/test/jdk/java/net/SocketOption/AfterClose.java Fri Jun 07 11:48:01 2019 +0200
+++ b/test/jdk/java/net/SocketOption/AfterClose.java Fri Jun 07 11:47:49 2019 +0100
@@ -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;
--- a/test/jdk/java/net/SocketOption/NullsAndBadValues.java Fri Jun 07 11:48:01 2019 +0200
+++ b/test/jdk/java/net/SocketOption/NullsAndBadValues.java Fri Jun 07 11:47:49 2019 +0100
@@ -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
*/