diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-15 13:24:05 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-07-27 13:40:40 -0500 |
commit | df484a50c072aa8ae318c2cf974e0878d696684b (patch) | |
tree | 494cb41a2ccf7a3df2003c93e2608c54cb1be1f2 | |
parent | ReportsHtml.cc: Restore ostream format (diff) | |
download | rtems-tools-df484a50c072aa8ae318c2cf974e0878d696684b.tar.bz2 |
ReportsText.cc: Restore ostream format
CID 1505940: Not restoring ostream format
Save format of stream before changing it, and change it back before returning.
Closes #4472
-rw-r--r-- | tester/covoar/ReportsText.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tester/covoar/ReportsText.cc b/tester/covoar/ReportsText.cc index 146fc35..c4a5dbc 100644 --- a/tester/covoar/ReportsText.cc +++ b/tester/covoar/ReportsText.cc @@ -10,6 +10,9 @@ #include "Explanations.h" #include "ObjdumpProcessor.h" +#include <rtems-utils.h> + +typedef rtems::utils::ostream_guard ostream_guard; namespace Coverage { @@ -145,6 +148,8 @@ bool ReportsText::PutCoverageLine( { const Coverage::Explanation* explanation; + ostream_guard oldState( report ); + report << "============================================" << std::endl << "Index : " << range.id << std::endl << "Symbol : " << symbolName |