test/jdk/java/net/Socket/asyncClose/AsyncClose.java
changeset 49431 5812849b5027
parent 47216 71c04702a3d5
child 54770 62b6e7587b1f
child 57308 f22d38b23756
--- a/test/jdk/java/net/Socket/asyncClose/AsyncClose.java	Tue Mar 27 19:29:46 2018 +0100
+++ b/test/jdk/java/net/Socket/asyncClose/AsyncClose.java	Tue Mar 27 13:22:40 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -31,6 +31,8 @@
  * @bug 4344135
  * @summary Check that {Socket,ServerSocket,DatagramSocket}.close will
  *          cause any thread blocked on the socket to throw a SocketException.
+ * @run main AsyncClose
+ * @run main/othervm -Djava.net.preferIPv4Stack=true AsyncClose
  */
 
 public class AsyncClose {