From 25ab3a8326a9e2c52c84b2747fa72907109a695d Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Mon, 17 May 2021 13:01:52 +0100 Subject: IVGCVSW-5964 Removing some remaining boost utility usages from tests. * Adding a basic PredicateResult class to replace boost::test_tools::predicate_result * Replacing all uses of boost::test_tools::predicate_result with the new armnn::PredicateResult class * Replacing use of boost::test_tools::output_test_stream output with std::ostringstream in ProfilerTests.cpp Signed-off-by: Colm Donelan Change-Id: I75cdbbff98d984e26e4a50c125386b2988516fad --- src/armnn/test/UnitTests.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/armnn/test/UnitTests.hpp') diff --git a/src/armnn/test/UnitTests.hpp b/src/armnn/test/UnitTests.hpp index c15477bf19..b55b13d4c8 100644 --- a/src/armnn/test/UnitTests.hpp +++ b/src/armnn/test/UnitTests.hpp @@ -42,7 +42,8 @@ void CompareTestResultIfSupported(const std::string& testName, const LayerTestRe "The test name does not match the supportedness it is reporting"); if (testResult.supported) { - BOOST_TEST(CompareTensors(testResult.output, testResult.outputExpected, testResult.compareBoolean)); + auto result = CompareTensors(testResult.output, testResult.outputExpected, testResult.compareBoolean); + BOOST_TEST(result.m_Result, result.m_Message.str()); } } @@ -56,7 +57,8 @@ void CompareTestResultIfSupported(const std::string& testName, const std::vector "The test name does not match the supportedness it is reporting"); if (testResult[i].supported) { - BOOST_TEST(CompareTensors(testResult[i].output, testResult[i].outputExpected)); + auto result = CompareTensors(testResult[i].output, testResult[i].outputExpected); + BOOST_TEST(result.m_Result, result.m_Message.str()); } } } -- cgit v1.2.1