From 2f26496155d93b4818f6610b9fc7ced30cdfb970 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 30 Apr 2024 14:01:21 +0900 Subject: [PATCH] Make UnitTest return non-zero on any test failure --- src/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.cpp b/src/test.cpp index b9b32c0..bebaccc 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -571,5 +571,5 @@ int main() { std::cout << "Checks checked: " << checks_checked << '\n' << "Checks passed: " << checks_passed << '\n'; - return 0; + return checks_checked == checks_passed ? 0 : 1; }