X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Fserialize.cpp;fp=test%2Fserialize.cpp;h=db31fba1f38ae67974e87e778089b85d76eec9bc;hp=85a9b58b8df2fdb0e7cd31b39ca9f0bf376bfe3d;hb=b592218402bfa779c024da2f32c4c782d52eaf88;hpb=fb3345ada7ea94225b78994fd50e3de693a2a3d5 diff --git a/test/serialize.cpp b/test/serialize.cpp index 85a9b58..db31fba 100644 --- a/test/serialize.cpp +++ b/test/serialize.cpp @@ -117,19 +117,23 @@ class test_serialize : public TestFixture CPPUNIT_TEST_SUITE_END(); + pid_t child_pid; + public: void setUp() { } void tearDown() - { } + { + // make sure the server-child is dead before the next test runs + kill(child_pid,SIGKILL); + sleep(1); + } void ClientSerializeErr() { - pid_t pid; - - switch(pid=fork()) + switch(child_pid=fork()) { case -1: {