diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2021-05-17 13:01:52 +0100 |
---|---|---|
committer | Colm Donelan <Colm.Donelan@arm.com> | 2021-05-18 11:25:13 +0100 |
commit | 25ab3a8326a9e2c52c84b2747fa72907109a695d (patch) | |
tree | 1d4eaaf5b41c68a4e3b3ce2cc400c3ffd76d510c /src/armnnUtils | |
parent | 1d239f5717e6e4adc47683e30a48b05e7511c734 (diff) | |
download | armnn-25ab3a8326a9e2c52c84b2747fa72907109a695d.tar.gz |
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 <Colm.Donelan@arm.com>
Change-Id: I75cdbbff98d984e26e4a50c125386b2988516fad
Diffstat (limited to 'src/armnnUtils')
-rw-r--r-- | src/armnnUtils/ParserPrototxtFixture.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<TParser>::RunTest(const std::map<std::string, std::ve auto outputExpected = MakeTensor<T, NumOutputDimensions>(bindingInfo.second, it.second); if (std::is_same<T, uint8_t>::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()); } } } |