diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-05-12 13:37:06 +0100 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-05-13 10:57:20 +0000 |
commit | 0c32ccfcd0b770cdd4eeb9d778b7f72a233e229a (patch) | |
tree | dcdf4f226f8a218161c023c05c8f41b94567caf9 /tests/profiling/gatordmock | |
parent | f3fcf325a9b57d37db9acb9080416b104a733136 (diff) | |
download | armnn-0c32ccfcd0b770cdd4eeb9d778b7f72a233e229a.tar.gz |
IVGCVSW-4737 Add check for CpuRef back-end before using it in tests
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Id7fbb7a39d2e9c7085636df44d4c8603a60cd4bf
Diffstat (limited to 'tests/profiling/gatordmock')
-rw-r--r-- | tests/profiling/gatordmock/tests/GatordMockTests.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/profiling/gatordmock/tests/GatordMockTests.cpp b/tests/profiling/gatordmock/tests/GatordMockTests.cpp index 98ca8ffe90..0170962261 100644 --- a/tests/profiling/gatordmock/tests/GatordMockTests.cpp +++ b/tests/profiling/gatordmock/tests/GatordMockTests.cpp @@ -377,6 +377,11 @@ BOOST_AUTO_TEST_CASE(GatorDMockEndToEnd) BOOST_AUTO_TEST_CASE(GatorDMockTimeLineActivation) { + // This test requires the CpuRef backend to be enabled + if(!BackendRegistryInstance().IsBackendRegistered("CpuRef")) + { + return; + } armnn::MockBackendInitialiser initialiser; // Setup the mock service to bind to the UDS. std::string udsNamespace = "gatord_namespace"; |