6961358: TEST_BUG: java/nio/channels/SocketChannel/OpenLeak.java can't run in samevm mode
Reviewed-by: chegar
--- a/jdk/test/ProblemList.txt Tue Jun 15 16:36:20 2010 +0100
+++ b/jdk/test/ProblemList.txt Tue Jun 15 16:42:54 2010 +0100
@@ -830,9 +830,6 @@
java/nio/channels/SocketChannel/ConnectState.java windows-all
java/nio/channels/SocketChannel/FinishConnect.java windows-all
-# Need to be marked othervm, or changed to be samevm safe
-java/nio/channels/SocketChannel/OpenLeak.java generic-all
-
# Gets java.net.BindException alot (static port number?)
java/nio/channels/SocketChannel/VectorIO.java generic-all
--- a/jdk/test/java/nio/channels/SocketChannel/OpenLeak.java Tue Jun 15 16:36:20 2010 +0100
+++ b/jdk/test/java/nio/channels/SocketChannel/OpenLeak.java Tue Jun 15 16:42:54 2010 +0100
@@ -25,6 +25,8 @@
* @bug 6548464
* @summary SocketChannel.open(SocketAddress) leaks file descriptor if
* connection cannot be established
+ * @build OpenLeak
+ * @run main/othervm OpenLeak
*/
import java.net.InetAddress;