[PATCH 3/3] ReportsText.cc: Add ostream_guard

Ryan Long ryan.long at oarcorp.com
Wed Aug 11 21:09:53 UTC 2021


CID 1505940: Not restoring ostream format

Closes #4472
---
 tester/covoar/ReportsText.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tester/covoar/ReportsText.cc b/tester/covoar/ReportsText.cc
index 40558d8..edf7984 100644
--- a/tester/covoar/ReportsText.cc
+++ b/tester/covoar/ReportsText.cc
@@ -221,6 +221,8 @@ bool  ReportsText::PutSymbolSummaryLine(
   float uncoveredBytes;
   float uncoveredInstructions;
 
+  rtems::utils::ostream_guard old_state( report );
+
   if ( symbolInfo.stats.sizeInBytes == 0 ) {
     report << "============================================" << std::endl
            << "Symbol                            : " << symbolName << std::endl
-- 
1.8.3.1



More information about the devel mailing list