Skip to content

Commit

Permalink
make tester in coverage mode always succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed May 4, 2023
1 parent 688c7d9 commit 86c9bf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/tester.d
Original file line number Diff line number Diff line change
Expand Up @@ -390,5 +390,9 @@ int main(string[] args)
if (!ast)
writefln("Finished parsing with %d errors and %d warnings.",
errorCount, warningCount);
return errorCount == 0 ? 0 : 1;

version (D_Coverage)
return 0; // we don't care about error count in coverage mode
else
return errorCount == 0 ? 0 : 1;
}

0 comments on commit 86c9bf4

Please sign in to comment.