From dc8b9bd211147bd86b7b159587c98b5d5535f249 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 3 Jul 2026 15:09:21 +0300 Subject: [PATCH] Fix test runner exit code --- tools/test/source/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/test/source/main.cpp b/tools/test/source/main.cpp index 72d77435..99155ace 100644 --- a/tools/test/source/main.cpp +++ b/tools/test/source/main.cpp @@ -215,6 +215,8 @@ int main(int argc, char ** argv) std::cout << (success == test_count ? green : red) << (success == test_count ? "Success: " : "Failure: ") << normal << success << '/' << test_count << " passed (" << psemek::util::pretty(all_end - all_start, std::chrono::milliseconds{1}) << ")" << std::endl; - if (success <= test_count) + if (success < test_count) return EXIT_FAILURE; + else + return EXIT_SUCCESS; }