From 423c4fbc18c313f409089357404d27296b867467 Mon Sep 17 00:00:00 2001 From: Yossi Levy Date: Tue, 8 Jan 2019 18:50:58 +0200 Subject: [PATCH] The direct_access_devicekey test should not run if there is no component flashiap block device in the target --- .../TESTS/kvstore/direct_access_devicekey_test/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp b/features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp index a7582b6431..781a08fc3f 100644 --- a/features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp +++ b/features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp @@ -15,6 +15,10 @@ * limitations under the License. */ +#ifndef COMPONENT_FLASHIAP +#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test +#endif + #include "mbed.h" #include #include @@ -31,11 +35,6 @@ #include "utest.h" #include -#ifndef DEVICE_FLASH -#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test -#endif - - using namespace utest::v1; using namespace mbed;