diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-27 17:41:23 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-03 15:56:53 -0500 |
commit | 987d912435832aec118a02e6e2f2160f4319ca71 (patch) | |
tree | 81079b028db81ecc05ea2203a34f56c3324f78fb /tester/covoar/ReportsBase.cc | |
parent | Remove dynamicLibrary global variable (diff) | |
download | rtems-tools-987d912435832aec118a02e6e2f2160f4319ca71.tar.bz2 |
Remove projectName global variable
- Replaced projectName in app_common with a local variable in covoar()
- Changed datatype to string
- Changed conditionals to reflect this
- Created projectName_m member variable for ReportsBase
- Added parameter to Reports* constructors to initialize projectName_m
Diffstat (limited to 'tester/covoar/ReportsBase.cc')
-rw-r--r-- | tester/covoar/ReportsBase.cc | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc index 8947f58..b2da71a 100644 --- a/tester/covoar/ReportsBase.cc +++ b/tester/covoar/ReportsBase.cc @@ -26,11 +26,13 @@ namespace Coverage { ReportsBase::ReportsBase( time_t timestamp, const std::string& symbolSetName, - Coverage::Explanations& allExplanations + Coverage::Explanations& allExplanations, + const std::string& projectName ): reportExtension_m( "" ), symbolSetName_m( symbolSetName ), timestamp_m( timestamp ), - allExplanations_m( allExplanations ) + allExplanations_m( allExplanations ), + projectName_m( projectName ) { } @@ -565,7 +567,8 @@ void ReportsBase::WriteSummaryReport( void GenerateReports( const std::string& symbolSetName, Coverage::Explanations& allExplanations, - bool verbose + bool verbose, + const std::string& projectName ) { typedef std::list<ReportsBase *> reportList_t; @@ -578,9 +581,19 @@ void GenerateReports( timestamp = time( NULL ); /* get current cal time */ - reports = new ReportsText( timestamp, symbolSetName, allExplanations ); + reports = new ReportsText( + timestamp, + symbolSetName, + allExplanations, + projectName + ); reportList.push_back( reports ); - reports = new ReportsHtml( timestamp, symbolSetName, allExplanations ); + reports = new ReportsHtml( + timestamp, + symbolSetName, + allExplanations, + projectName + ); reportList.push_back( reports ); for ( ritr = reportList.begin(); ritr != reportList.end(); ritr++ ) { |