catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Passthrough error code from coverage helper
- Commit
2f15ccd4d373a33898073a2d5f9153e45e9e51a2- Author
- Martin Hořeňovský ·
- Parents
8f3fc15b73d2
Changes
misc/coverage-helper.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/coverage-helper.cpp b/misc/coverage-helper.cpp index 9783d693..17218905 100644 --- a/misc/coverage-helper.cpp +++ b/misc/coverage-helper.cpp @@ -96,5 +96,10 @@ int main(int argc, char** argv) { return lhs + ' ' + rhs; }); - exec_cmd(cmdline, num, windowsify_path(catch_path(args[0]))); + try { + return exec_cmd(cmdline, num, windowsify_path(catch_path(args[0]))); + } catch (std::exception const& ex) { + std::cerr << "Helper failed with: '" << ex.what() << "'\n"; + return 12; + } }