Skip to content
Snippets Groups Projects
Commit b4189986 authored by Nicolas Mansard's avatar Nicolas Mansard
Browse files

Corrected a segfault problem in the test pool. The problem at the global level...

Corrected a segfault problem in the test pool. The problem at the global level remains. At least, the test passes now.
parent 841c1354
No related merge requests found
......@@ -54,6 +54,7 @@ BOOST_AUTO_TEST_CASE (pool_list)
output_test_stream output;
dynamicgraph::g_pool.commandLine("pool", "list", in, output);
BOOST_CHECK (output.is_equal ("MyEntityInst (MyEntity)\n"));
dynamicgraph::g_pool.deregisterEntity(myEntity.getName());
}
BOOST_AUTO_TEST_CASE (pool_display)
......@@ -63,4 +64,5 @@ BOOST_AUTO_TEST_CASE (pool_display)
dynamicgraph::Entity& e = dynamicgraph::g_pool.getEntity("MyEntityInst");
e.display(output);
BOOST_CHECK (output.is_equal ("Hello! My name is MyEntityInst !\n"));
dynamicgraph::g_pool.deregisterEntity(myEntity.getName());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment