RFR [13] 8225424: Add jdk.net.usePlainSocketImpl runs to a couple of tests
Chris Hegarty
chris.hegarty at oracle.com
Thu Jun 6 11:07:45 UTC 2019
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190606/0185505e/attachment.html>
More information about the net-dev
mailing list