X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Fserialize.cpp;h=808ea089d7afdbcc9eedd86a430348810273a532;hp=db31fba1f38ae67974e87e778089b85d76eec9bc;hb=276fd05261cb316a260784ec34db6da699e594de;hpb=b592218402bfa779c024da2f32c4c782d52eaf88 diff --git a/test/serialize.cpp b/test/serialize.cpp index db31fba..808ea08 100644 --- a/test/serialize.cpp +++ b/test/serialize.cpp @@ -122,7 +122,8 @@ class test_serialize : public TestFixture public: void setUp() - { } + { + } void tearDown() { @@ -143,12 +144,18 @@ class test_serialize : public TestFixture case 0: // child { - socket_server ss("./socket"); - command_server cs(ss); + try + { + socket_server ss("./socket"); + command_server cs(ss); - // max 10 sec - for (int i=0; i < 10; i++) - cs.handle(1000000); + // max 10 sec + for (int i=0; i < 10; i++) + cs.handle(1000000); + } catch(...) + { + std::cerr << "exception in child. ignoring\n"; + } // don't call atexit and stuff _exit(0);