From 8f0015e349c1428496a19236c1dd4132ef4554e5 Mon Sep 17 00:00:00 2001 From: "Sun, Yi" Date: Tue, 8 Apr 2014 10:53:40 +0800 Subject: Delete the printing of dynamic statistics line. summary: --------------------- 1. Delete the printing of dynamic statistics line. 2. Add function to catch signals(like CTRL+C,core dumped ...), if caught, reminder user the signal name. core dumped example: ... displacement_map_element() [SUCCESS] compiler_clod() Interrupt signal (SIGSEGV) received. summary: ---------- total: 657 run: 297 pass: 271 fail: 26 pass rate: 0.960426 Signed-off-by: Yi Sun Signed-off-by: Yangwei Shui Reviewed-by: Zhigang Gong --- utests/utest.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utests/utest.hpp') diff --git a/utests/utest.hpp b/utests/utest.hpp index e6a77490..0381bfe6 100644 --- a/utests/utest.hpp +++ b/utests/utest.hpp @@ -96,12 +96,12 @@ struct UTest do { \ try { \ EXPR; \ - std::cout << " [SUCCESS]"; \ + std::cout << " [SUCCESS]" << std::endl; \ UTest::retStatistics.passCount += 1; \ } \ catch (Exception e) { \ - std::cout << " [FAILED]"; \ - std::cout << "\n " << e.what(); \ + std::cout << " [FAILED]" << std::endl; \ + std::cout << " " << e.what() << std::endl; \ UTest::retStatistics.failCount++; \ } \ } while (0) @@ -110,11 +110,11 @@ struct UTest do { \ try { \ EXPR; \ - std::cout << " [FAILED]"; \ + std::cout << " [FAILED]" << std::endl; \ retStatistics.failCount++; \ } \ catch (gbe::Exception e) { \ - std::cout << " [SUCCESS]"; \ + std::cout << " [SUCCESS]" << std::endl; \ retStatistics.passCount++; \ } \ } while (0) -- cgit v1.2.1