Changed one more homepage link
[libt2n] / test / reentrant.cpp
index c60baae..13f6250 100644 (file)
@@ -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/serialization/export.hpp>
 
-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