User Tools

Site Tools


for_developers:testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
for_developers:testing [2021/05/25 14:09] ursgraffor_developers:testing [2021/05/25 14:11] (current) – [Suppress Logger Output] ursgraf
Line 28: Line 28:
 We do not want to mangle output from control blocks or from the safety system with output from the testing framework. If you test a component which uses the logger framework, make sure to set the default stream logger and to set 'cout' to 'failed' state. This will prevent output to be written to the log. We do not want to mangle output from control blocks or from the safety system with output from the testing framework. If you test a component which uses the logger framework, make sure to set the default stream logger and to set 'cout' to 'failed' state. This will prevent output to be written to the log.
 <code cpp> <code cpp>
-  std::cout.setstate(std::ios_base::badbit); +std::cout.setstate(std::ios_base::badbit); 
-  logger::Logger::setDefaultStreamLogger(std::cout);+eeros::logger::Logger::setDefaultStreamLogger(std::cout);
 </code> </code>
  
  
  
for_developers/testing.1621944563.txt.gz · Last modified: 2021/05/25 14:09 by ursgraf