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; }