X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=test%2Freentrant.cpp;h=13f62503bad6bb6cce37171d04d1ea94ee8148e5;hb=c20a976f346150c63cb93580eccac06b0058a7a0;hp=c60baaed500518354cea166949fb8c8b751b18e4;hpb=696c95c2808d6f88df2b348f9e77fc66c9068976;p=libt2n diff --git a/test/reentrant.cpp b/test/reentrant.cpp index c60baae..13f6250 100644 --- a/test/reentrant.cpp +++ b/test/reentrant.cpp @@ -35,7 +35,7 @@ using namespace std; using namespace CppUnit; using namespace libt2n; -namespace +namespace reentrant { command_server *global_server = NULL; @@ -124,8 +124,10 @@ class testfunc_cmd : public libt2n::command #include -BOOST_CLASS_EXPORT(testfunc_cmd) -BOOST_CLASS_EXPORT(testfunc_res) +BOOST_CLASS_EXPORT(reentrant::testfunc_cmd) +BOOST_CLASS_EXPORT(reentrant::testfunc_res) + +using namespace reentrant; class test_reentrant : public TestFixture { @@ -188,6 +190,9 @@ class test_reentrant : public TestFixture } catch (exception &e) { cerr << "caught exception: " << e.what() << endl; + } catch(...) + { + std::cerr << "exception in child. ignoring\n"; } // don't call atexit and stuff