test/jdk/java/net/Socket/asyncClose/BrokenPipe.java
changeset 49431 5812849b5027
parent 47216 71c04702a3d5
child 54770 62b6e7587b1f
child 57110 b848ca1ef778
--- a/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Tue Mar 27 19:29:46 2018 +0100
+++ b/test/jdk/java/net/Socket/asyncClose/BrokenPipe.java	Tue Mar 27 13:22:40 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2010, 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
@@ -22,10 +22,12 @@
  */
 
 /*
- * @test 1.1 01/09/19
+ * @test
  * @bug 4511404
  * @summary Check that a broken pipe error doesn't throw an exception
  *          indicating the socket is closed.
+ * @run main BrokenPipe
+ * @run main/othervm -Djava.net.preferIPv4Stack=true BrokenPipe
  */
 import java.io.*;
 import java.net.*;