IVGCVSW-4737 Add check for CpuRef back-end before using it in tests
[platform/upstream/armnn.git] / tests / profiling / gatordmock / tests / GatordMockTests.cpp
index 98ca8ff..0170962 100644 (file)
@@ -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";