[rtems-tools commit] ReportsText.cc: Add ostream_guard
    Joel Sherrill 
    joel at rtems.org
       
    Fri Aug 13 19:01:54 UTC 2021
    
    
  
Module:    rtems-tools
Branch:    master
Commit:    632414dc0f2976cc3ce0267d0c51aeb7c4de1e14
Changeset: http://git.rtems.org/rtems-tools/commit/?id=632414dc0f2976cc3ce0267d0c51aeb7c4de1e14
Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Wed Aug 11 16:16:34 2021 -0400
ReportsText.cc: Add ostream_guard
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
    
    
More information about the vc
mailing list