X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Fserialize.cpp;h=808ea089d7afdbcc9eedd86a430348810273a532;hp=b7f32489dcf3d53702b9d79549f9b48a21456351;hb=441d41fe583765902aa2f9641c0977e295e62be3;hpb=56f3994d74dbc36d10bfa83b50b016bf269ac563 diff --git a/test/serialize.cpp b/test/serialize.cpp index b7f3248..808ea08 100644 --- a/test/serialize.cpp +++ b/test/serialize.cpp @@ -144,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);