fix(core): coreTest log output in console instead of file
Description
Normally, the output of a unit-test is redirected to fwTest.log
. This is especially to not interfere with CppUnit output which gives feedback on the execution of the tests.
This works fine for all tests, except coreTest
where we can see all sight logs in the console.
Steps to reproduce
- Launch
coreTest
in a console.
Functional specifications
No change.
Technical specifications
The redirection of the log is performed by a singleton in sight::core::utest
. We link with this library in coreTest, but we do not use any symbol from it. Thus the linker strips it and finally, we do not initialize the output.
We could try to not strip. But this should be simpler to initialize this directly in cppunit_main.cpp
. This way there is no chance to miss it.
Test plan
- Launch
coreTest
and observe the output is clean, it should only show cppunit output. - Verify that
fwTest.log
is filled in.