diff options
author | Sun, Yi <yi.sun@intel.com> | 2014-04-08 10:53:40 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-04-21 09:20:51 +0800 |
commit | 8f0015e349c1428496a19236c1dd4132ef4554e5 (patch) | |
tree | ea83ba74975e69a4aadc6f78d45608fbcc8a3f59 /utests/utest.hpp | |
parent | ae1e342c5bf7e0c6e325313aefffa3bd168e5678 (diff) | |
download | beignet-8f0015e349c1428496a19236c1dd4132ef4554e5.tar.gz |
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 <yi.sun@intel.com>
Signed-off-by: Yangwei Shui <yangweix.shui@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest.hpp')
-rw-r--r-- | utests/utest.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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) |