using namespace CppUnit;
using namespace libt2n;
-namespace
+namespace reentrant
{
command_server *global_server = NULL;
#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
{
} catch (exception &e)
{
cerr << "caught exception: " << e.what() << endl;
+ } catch(...)
+ {
+ std::cerr << "exception in child. ignoring\n";
}
// don't call atexit and stuff