From ac2770a4bb6461bfbddec928bb6208f26f898f02 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Wed, 1 Apr 2020 16:51:23 +0100 Subject: IVGCVSW-4485 Remove Boost assert * Change boost assert to armnn assert * Change include file to armnn assert * Fix ARMNN_ASSERT_MSG issue with multiple conditions * Change BOOST_ASSERT to BOOST_TEST where appropriate * Remove unused include statements Signed-off-by: Narumol Prangnawarat Change-Id: I5d0fa3a37b7c1c921216de68f0073aa34702c9ff --- tests/InferenceTest.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/InferenceTest.inl') diff --git a/tests/InferenceTest.inl b/tests/InferenceTest.inl index 5b9b45a4a2..ed16464787 100644 --- a/tests/InferenceTest.inl +++ b/tests/InferenceTest.inl @@ -4,10 +4,10 @@ // #include "InferenceTest.hpp" +#include #include #include #include -#include #include #include #include @@ -80,7 +80,7 @@ struct ClassifierResultProcessor : public boost::static_visitor<> void operator()(const std::vector& values) { IgnoreUnused(values); - BOOST_ASSERT_MSG(false, "Non-float predictions output not supported."); + ARMNN_ASSERT_MSG(false, "Non-float predictions output not supported."); } ResultMap& GetResultMap() { return m_ResultMap; } @@ -360,9 +360,9 @@ int ClassifierInferenceTestMain(int argc, const armnn::TensorShape* inputTensorShape) { - BOOST_ASSERT(modelFilename); - BOOST_ASSERT(inputBindingName); - BOOST_ASSERT(outputBindingName); + ARMNN_ASSERT(modelFilename); + ARMNN_ASSERT(inputBindingName); + ARMNN_ASSERT(outputBindingName); return InferenceTestMain(argc, argv, defaultTestCaseIds, [=] -- cgit v1.2.1