libt2n: (tomj) fixed call of virtual function close() from destructor, fixed return...
[libt2n] / test / newserver.cpp
index 2631d0e..59aa6ae 100644 (file)
@@ -164,6 +164,9 @@ class test_newserver : public TestFixture
             default:
             // parent
             {
+                // don't kill us on broken pipe
+                signal(SIGPIPE, SIG_IGN);
+
                 // wait till server is up
                 sleep(1);
                 socket_client_connection sc("./socket");
@@ -188,7 +191,7 @@ class test_newserver : public TestFixture
                 catch(...)
                     { throw; }
 
-                CPPUNIT_ASSERT_EQUAL(string("error reading from socket : Connection reset by peer"),errormsg);
+                CPPUNIT_ASSERT_EQUAL(string("write() returned Bad file descriptor"),errormsg);
             }
         }
     }