diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2020-04-01 16:51:23 +0100 |
---|---|---|
committer | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2020-04-06 09:06:01 +0100 |
commit | ac2770a4bb6461bfbddec928bb6208f26f898f02 (patch) | |
tree | c72f67f648b7aca2f4bccf69b05d185bf5f9ccad /tests/InferenceTest.cpp | |
parent | 7ee5d2c3b3cee5a924ed6347fef613ee07b5aca7 (diff) | |
download | armnn-ac2770a4bb6461bfbddec928bb6208f26f898f02.tar.gz |
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 <narumol.prangnawarat@arm.com>
Change-Id: I5d0fa3a37b7c1c921216de68f0073aa34702c9ff
Diffstat (limited to 'tests/InferenceTest.cpp')
-rw-r--r-- | tests/InferenceTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/InferenceTest.cpp b/tests/InferenceTest.cpp index c6e5011ae4..7e165b5137 100644 --- a/tests/InferenceTest.cpp +++ b/tests/InferenceTest.cpp @@ -4,11 +4,12 @@ // #include "InferenceTest.hpp" +#include <armnn/utility/Assert.hpp> + #include "../src/armnn/Profiling.hpp" #include <boost/algorithm/string.hpp> #include <boost/numeric/conversion/cast.hpp> #include <boost/filesystem/path.hpp> -#include <boost/assert.hpp> #include <boost/format.hpp> #include <boost/program_options.hpp> #include <boost/filesystem/operations.hpp> @@ -55,7 +56,7 @@ bool ParseCommandLine(int argc, char** argv, IInferenceTestCaseProvider& testCas // Coverity points out that default_value(...) can throw a bad_lexical_cast, // and that desc.add_options() can throw boost::io::too_few_args. // They really won't in any of these cases. - BOOST_ASSERT_MSG(false, "Caught unexpected exception"); + ARMNN_ASSERT_MSG(false, "Caught unexpected exception"); std::cerr << "Fatal internal error: " << e.what() << std::endl; return false; } @@ -228,7 +229,7 @@ bool InferenceTest(const InferenceTestOptions& params, success = false; break; default: - BOOST_ASSERT_MSG(false, "Unexpected TestCaseResult"); + ARMNN_ASSERT_MSG(false, "Unexpected TestCaseResult"); return false; } } |