Skip to content

Commit

Permalink
Merge pull request #39 from catbro666/adjust-report-output
Browse files Browse the repository at this point in the history
doesn't print red failed report if all tests pass
  • Loading branch information
jasmcaus authored Jun 27, 2023
2 parents bde8709 + 3b85430 commit 95448f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tau/tau.h
Original file line number Diff line number Diff line change
Expand Up @@ -1204,9 +1204,11 @@ inline int tau_main(const int argc, const char* const * const argv) {
tauColouredPrintf(TAU_COLOUR_BRIGHTGREEN_, "[ PASSED ] %" TAU_PRIu64 " %s\n",
tauStatsTestsRan - tauStatsNumTestsFailed,
tauStatsTestsRan - tauStatsNumTestsFailed == 1 ? "suite" : "suites");
tauColouredPrintf(TAU_COLOUR_BRIGHTRED_, "[ FAILED ] %" TAU_PRIu64 " %s\n",
tauStatsNumTestsFailed,
tauStatsNumTestsFailed == 1 ? "suite" : "suites");
if (tauStatsNumTestsFailed > 0) {
tauColouredPrintf(TAU_COLOUR_BRIGHTRED_, "[ FAILED ] %" TAU_PRIu64 " %s\n",
tauStatsNumTestsFailed,
tauStatsNumTestsFailed == 1 ? "suite" : "suites");
}

if(!tauDisableSummary) {
tauColouredPrintf(TAU_COLOUR_BOLD_, "\nSummary:\n");
Expand Down

0 comments on commit 95448f3

Please sign in to comment.