jdk/test/java/net/Socket/asyncClose/Race.java
changeset 16866 e659009ee08d
parent 15522 e6d9ef53b499
--- a/jdk/test/java/net/Socket/asyncClose/Race.java	Tue Apr 16 12:51:22 2013 +0100
+++ b/jdk/test/java/net/Socket/asyncClose/Race.java	Tue Apr 16 13:26:30 2013 +0100
@@ -23,8 +23,8 @@
 
 /*
  * @test
- * @bug 8006395
- * @summary Race in async socket close on Linux
+ * @bug 8006395 8012244
+ * @summary Tests racing code that reads and closes a Socket
  */
 
 import java.io.InputStream;
@@ -58,7 +58,7 @@
                                     Thread.sleep(50);
                             } catch (Exception x) {
                                 if (!(x instanceof SocketException
-                                      && x.getMessage().equals("Socket closed")))
+                                      && x.getMessage().equalsIgnoreCase("socket closed")))
                                     x.printStackTrace();
                                 // ok, expect Socket closed
                             }