From 380c1a0b5c5bb28d0773af4870e104675074e148 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 17 Aug 2021 00:52:23 +0100 Subject: IVGCVSW-6317 Cleaning up BackendRegistry following negative tests. * Deregister backends in BackendHintTest. * Deregister backend in ThrowBackendUnavailableException * Clean up dynamic backends when an exception is thrown from RuntimeImpl::RuntimeImpl. * Use CHECK_THROWS_AS_MESSAGE syntax in ClCustomAllocatorTests. Signed-off-by: Colm Donelan Change-Id: I0e6e5413dd074b5fcfc9515c85cb8d40a4a0b73c --- src/armnn/test/OptimizerTests.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/armnn/test') diff --git a/src/armnn/test/OptimizerTests.cpp b/src/armnn/test/OptimizerTests.cpp index 38aef671d2..66da3ad1ff 100644 --- a/src/armnn/test/OptimizerTests.cpp +++ b/src/armnn/test/OptimizerTests.cpp @@ -804,6 +804,9 @@ TEST_CASE("BackendHintTest") { (*it)->Accept(visitor); } + // Clean up the registry for the next test. + backendRegistry.Deregister("MockBackend"); + backendRegistry.Deregister("CustomBackend"); } // Tests that OptimizeForExclusiveConnections works, fusing when needed, using BatchNorm fusing as example -- cgit v1.2.1