Skip to content

Commit d5a7476

Browse files
[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.
1 parent d7b08ed commit d5a7476

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/debug-logger.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ namespace dynamicgraph
6868
BOOST_AUTO_TEST_CASE(debug_logger)
6969
{
7070
std::ofstream of;
71+
dynamicgraph::RealTimeLogger::instance();
7172
of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);
7273
dgADD_OSTREAM_TO_RTLOG (of);
7374

@@ -81,6 +82,8 @@ BOOST_AUTO_TEST_CASE(debug_logger)
8182
{
8283
entity.testDebugTrace();
8384
}
84-
85+
86+
dynamicgraph::RealTimeLogger::destroy();
8587
}
8688

89+

0 commit comments

Comments
 (0)