Skip to content

Commit

Permalink
compiler: fix testing cannot write stats when any failed test exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 3, 2024
1 parent 963939c commit d3f0c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/julec/obj/cxx/testing.jule
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ impl TestCoder {

obj += "\n\n"
obj += self.oc.indent()
obj += "if (failed != 0) std::exit(1);\n"
obj += "std::cout << std::endl << \"total tests: \" << total << \" skipped: \" << skipped << \" failed: \" << failed << \" pass: \" << total-failed-skipped << std::endl;\n"
obj += self.oc.indent()
obj += "std::cout << std::endl << std::endl << \"total tests: \" << total << \" skipped: \" << skipped << \" failed: \" << failed << \" pass: \" << total-failed-skipped << std::endl;\n"
obj += "if (failed != 0) std::exit(1);\n"

self.oc.done_indent()
obj += self.oc.indent()
Expand Down

0 comments on commit d3f0c96

Please sign in to comment.