aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2023-08-01 14:57:25 +0100
committerColm Donelan <colm.donelan@arm.com>2023-08-02 10:56:32 +0100
commit2812484ffa1d0ef8f9456d297d05202bea3dac38 (patch)
treeb46766e6259e9eae1b0dadba599206d02e7158e2 /src/armnn/test
parentfb2b416a6451f2f78314fe71396297cd0c02ed47 (diff)
downloadarmnn-2812484ffa1d0ef8f9456d297d05202bea3dac38.tar.gz
Fixing ambiguous method name in BackendHelper.
!android-nn-driver:10035 * Two of the 4 HasCapability methods in BackendHelper were checking the value of the capability not just the existence of the capability. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I63bc1671dfb088a947de70a21c86d2502f92f008
Diffstat (limited to 'src/armnn/test')
-rw-r--r--src/armnn/test/OptimizerTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/test/OptimizerTests.cpp b/src/armnn/test/OptimizerTests.cpp
index f83900404b..de077c19f0 100644
--- a/src/armnn/test/OptimizerTests.cpp
+++ b/src/armnn/test/OptimizerTests.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017,2022 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2017,2022-2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -724,7 +724,7 @@ TEST_CASE("BackendCapabilityTest")
armnn::BackendOptions::BackendOption nonConstWeights{"NonConstWeights", true};
// MockBackend does not support the NonConstWeights capability
- CHECK(!armnn::HasCapability(nonConstWeights, backendId));
+ CHECK(!armnn::HasMatchingCapability(nonConstWeights, backendId));
CHECK(!armnn::HasCapability("NonConstWeights", backendId));
// MockBackend does not support the AsyncExecution capability