diff options
author | steniu01 <steven.niu@arm.com> | 2017-06-15 10:49:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 13:03:43 +0100 |
commit | 9746fd824efe1d1d9933c59376e81dcf9c7a0eca (patch) | |
tree | 9279caa933af9fc834e85cc85dfd049cdcbd96ce /tests/validation/UNIT/FixedPoint.cpp | |
parent | f795986c8d4594279c277b14a33d29e48b2a4def (diff) | |
download | ComputeLibrary-9746fd824efe1d1d9933c59376e81dcf9c7a0eca.tar.gz |
COMPMID-250 handle validation results comparision correctly
Change-Id: I96b73fb002b74ca397e7beb00dd734d78a5f0fd3
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/77890
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/UNIT/FixedPoint.cpp')
-rw-r--r-- | tests/validation/UNIT/FixedPoint.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/validation/UNIT/FixedPoint.cpp b/tests/validation/UNIT/FixedPoint.cpp index 63d4150318..8042bb6da8 100644 --- a/tests/validation/UNIT/FixedPoint.cpp +++ b/tests/validation/UNIT/FixedPoint.cpp @@ -139,14 +139,14 @@ BOOST_DATA_TEST_CASE(FixedPointQS8Outputs, (boost::unit_test::data::make(func_na out_val = fixed_point_arithmetic::inv_sqrt(in_val); } - BOOST_TEST_INFO("input = " << in_val); - BOOST_TEST_INFO("output = " << out_val); - BOOST_TEST_INFO("reference = " << ref_val); - BOOST_TEST_INFO("tolerance = " << tolerance); - BOOST_TEST_WARN((std::abs(static_cast<float>(out_val) - ref_val) <= tolerance)); - if(std::abs(static_cast<float>(out_val) - ref_val) > tolerance) { + BOOST_TEST_INFO("input = " << in_val); + BOOST_TEST_INFO("output = " << out_val); + BOOST_TEST_INFO("reference = " << ref_val); + BOOST_TEST_INFO("tolerance = " << tolerance); + BOOST_TEST_WARN((std::abs(static_cast<float>(out_val) - ref_val) <= tolerance)); + ++num_mismatches; } |