3bd60e96c8
Each of the global logstream priorities are captured into its own std::ostringstream stream, all held together in the test suite global _iostreams class instance. This object can be obtained by calling getIOstreams(). The streams are captured using the StreamLogCallback class, which is a simple modification of the simgear FileLogCallback class, registered with the global logstream's addCallback() function. When tests fail, all of contents the different simgear logstreams are now reported. The failure report consists of the following sections: - Failure information. - SG_BULK simgear logstream (all messages). - SG_BULK only simgear logstream. - SG_DEBUG only simgear logstream. - SG_INFO only simgear logstream. - SG_WARN only simgear logstream. - SG_ALERT only simgear logstream. - Combined STDOUT and STDERR streams. Any empty sections, except for SG_BULK, will not be shown. |
||
---|---|---|
.. | ||
gui_tests | ||
simgear_tests | ||
system_tests | ||
unit_tests | ||
bootstrap.cxx | ||
CMakeLists.txt | ||
fgCompilerOutputter.cxx | ||
fgCompilerOutputter.hxx | ||
fgTestListener.cxx | ||
fgTestListener.hxx | ||
fgTestRunner.cxx | ||
fgTestRunner.hxx | ||
formatting.cxx | ||
formatting.hxx | ||
logging.cxx | ||
logging.hxx | ||
testSuite.cxx |