aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backendsCommon
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/backendsCommon')
-rw-r--r--src/backends/backendsCommon/test/DynamicBackendTests.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backends/backendsCommon/test/DynamicBackendTests.hpp b/src/backends/backendsCommon/test/DynamicBackendTests.hpp
index 0c24ec6f44..a2a6df0432 100644
--- a/src/backends/backendsCommon/test/DynamicBackendTests.hpp
+++ b/src/backends/backendsCommon/test/DynamicBackendTests.hpp
@@ -108,8 +108,8 @@ std::string GetBasePath(const std::string& basePath)
path programLocation = boost::dll::program_location().parent_path();
path sharedObjectPath = programLocation.append(basePath);
- BOOST_CHECK(exists(sharedObjectPath));
-
+ BOOST_CHECK_MESSAGE(exists(sharedObjectPath), "Base path for shared objects does not exist: " +
+ sharedObjectPath.string());
return sharedObjectPath.string();
}
@@ -344,6 +344,11 @@ void CreateValidDynamicBackendObjectTestImpl()
using namespace armnn;
std::string testSubDirectory = GetTestSubDirectory(g_TestDynamicBackendSubDir);
+
+ // We expect this path to exists so we can load a valid dynamic backend.
+ BOOST_CHECK_MESSAGE(boost::filesystem::exists(testSubDirectory),
+ "Base path for shared objects does not exist: " + testSubDirectory);
+
std::string sharedObjectFilePath = GetTestFilePath(testSubDirectory, g_TestValidTestDynamicBackendFileName);
void* sharedObjectHandle = nullptr;