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/armnnUtils/ParserPrototxtFixture.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/armnnUtils') diff --git a/src/armnnUtils/ParserPrototxtFixture.hpp b/src/armnnUtils/ParserPrototxtFixture.hpp index 782c181982..ad991efa36 100644 --- a/src/armnnUtils/ParserPrototxtFixture.hpp +++ b/src/armnnUtils/ParserPrototxtFixture.hpp @@ -255,11 +255,13 @@ void ParserPrototxtFixture::RunTest(const std::map(bindingInfo.second, it.second); if (std::is_same::value) { - BOOST_TEST(CompareTensors(outputExpected, outputStorage[it.first], true)); + auto result = CompareTensors(outputExpected, outputStorage[it.first], true); + BOOST_TEST(result.m_Result, result.m_Message.str()); } else { - BOOST_TEST(CompareTensors(outputExpected, outputStorage[it.first])); + auto result = CompareTensors(outputExpected, outputStorage[it.first]); + BOOST_TEST(result.m_Result, result.m_Message.str()); } } } -- cgit v1.2.1