Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225424

Add jdk.net.usePlainSocketImpl runs to a couple of tests

XMLWordPrintable

    • b25

        Prior to JDK-8221481, 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
          */

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: