From d5a7476148d3829a319d91dc605c0f94b7f5373e Mon Sep 17 00:00:00 2001 From: Olivier Stasse <ostasse@laas.fr> Date: Sun, 3 Mar 2019 09:30:36 +0100 Subject: [PATCH] [tests] Improves the unit test of the debug-logger TODO: Right now this is only a simple coverage. The tests is always sending back True. --- tests/debug-logger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/debug-logger.cpp b/tests/debug-logger.cpp index 447df83..c00f055 100644 --- a/tests/debug-logger.cpp +++ b/tests/debug-logger.cpp @@ -68,6 +68,7 @@ namespace dynamicgraph BOOST_AUTO_TEST_CASE(debug_logger) { std::ofstream of; + dynamicgraph::RealTimeLogger::instance(); of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app); dgADD_OSTREAM_TO_RTLOG (of); @@ -81,6 +82,8 @@ BOOST_AUTO_TEST_CASE(debug_logger) { entity.testDebugTrace(); } - + + dynamicgraph::RealTimeLogger::destroy(); } + -- GitLab