From b41899867181f95d249968b650d8a8989b9154a4 Mon Sep 17 00:00:00 2001
From: Mansard <nmansard@laas.fr>
Date: Wed, 2 Feb 2011 19:06:36 +0100
Subject: [PATCH] Corrected a segfault problem in the test pool. The problem at
 the global level remains. At least, the test passes now.

---
 tests/pool.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/pool.cpp b/tests/pool.cpp
index 0ba6581..ab323bf 100644
--- a/tests/pool.cpp
+++ b/tests/pool.cpp
@@ -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());
 }
-- 
GitLab