aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/UNIT
diff options
context:
space:
mode:
authorsteniu01 <steven.niu@arm.com>2017-06-15 10:49:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 13:03:43 +0100
commit9746fd824efe1d1d9933c59376e81dcf9c7a0eca (patch)
tree9279caa933af9fc834e85cc85dfd049cdcbd96ce /tests/validation/UNIT
parentf795986c8d4594279c277b14a33d29e48b2a4def (diff)
downloadComputeLibrary-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')
-rw-r--r--tests/validation/UNIT/FixedPoint.cpp12
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;
}