From bbd15c59426e4b2a590ed2243b2a5bd8fa07b83b Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 16 Jan 2021 22:46:29 +0300 Subject: [PATCH] Slightly better overall tests result reporting --- tools/test/source/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test/source/main.cpp b/tools/test/source/main.cpp index d0b202bd..43463751 100644 --- a/tools/test/source/main.cpp +++ b/tools/test/source/main.cpp @@ -141,7 +141,8 @@ int main(int argc, char ** argv) auto all_end = clock::now(); std::cout << std::endl; - std::cout << success << '/' << test_count << " passed (" << psemek::util::pretty(all_end - all_start, std::chrono::milliseconds{1}) << ")" << std::endl; + std::cout << (success == test_count ? "Success: " : "Failure: ") << success << '/' << test_count << " passed (" + << psemek::util::pretty(all_end - all_start, std::chrono::milliseconds{1}) << ")" << std::endl; if (success <= test_count) return EXIT_FAILURE;