X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Fcmdgroup.cpp;fp=test%2Fcmdgroup.cpp;h=eee54bf72e74856a342dcd001c737999c13203cb;hp=314e28d45ead688b3f88db3667d2d65403a2d16f;hb=441d41fe583765902aa2f9641c0977e295e62be3;hpb=696c95c2808d6f88df2b348f9e77fc66c9068976 diff --git a/test/cmdgroup.cpp b/test/cmdgroup.cpp index 314e28d..eee54bf 100644 --- a/test/cmdgroup.cpp +++ b/test/cmdgroup.cpp @@ -193,12 +193,18 @@ class test_cmdgroup : public TestFixture case 0: // child { - socket_server ss("./socket"); - group_command_server cs(ss); + try + { + socket_server ss("./socket"); + group_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); @@ -234,12 +240,18 @@ class test_cmdgroup : public TestFixture case 0: // child { - socket_server ss("./socket"); - group_command_server cs(ss); + try + { + socket_server ss("./socket"); + group_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);