diff options
author | Alex White <alex.white@oarcorp.com> | 2021-03-01 10:58:11 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:58 -0500 |
commit | 0e6c7ec2536be18fce380ce83f996868d9021703 (patch) | |
tree | 9bdf4f5dbbeb84d539e6c3eb3abd8bdf2f14a90d /tester/covoar/ReportsBase.cc | |
parent | covoar: Fix overflow of high PC address (diff) | |
download | rtems-tools-0e6c7ec2536be18fce380ce83f996868d9021703.tar.bz2 |
covoar/Reports: Fix empty branch report
This makes the branch report more consistent with the other reports when
there is no branch information found.
Diffstat (limited to 'tester/covoar/ReportsBase.cc')
-rw-r--r-- | tester/covoar/ReportsBase.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc index 1615c0b..40ed209 100644 --- a/tester/covoar/ReportsBase.cc +++ b/tester/covoar/ReportsBase.cc @@ -290,15 +290,9 @@ void ReportsBase::WriteBranchReport( if (!report) return; - // If no branches were found of branch coverage is not supported - if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) || - (BranchInfoAvailable == false) ) { - - PutNoBranchInfo(report); - - // If branches were found, ... - } else { - + // If no branches were found then branch coverage is not supported + if ((SymbolsToAnalyze->getNumberBranchesFound() != 0) && + (BranchInfoAvailable == true) ) { // Process uncovered branches for each symbol. count = 0; for (ditr = SymbolsToAnalyze->set.begin(); |