Skip to content

Commit 423c4fb

Browse files
Yossi Levyoffirko
authored andcommitted
The direct_access_devicekey test should not run if there is no component flashiap block device in the target
1 parent 6592e85 commit 423c4fb

File tree

1 file changed

+4
-5
lines changed
  • features/storage/TESTS/kvstore/direct_access_devicekey_test

1 file changed

+4
-5
lines changed

features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18+
#ifndef COMPONENT_FLASHIAP
19+
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
20+
#endif
21+
1822
#include "mbed.h"
1923
#include <stdio.h>
2024
#include <string.h>
@@ -31,11 +35,6 @@
3135
#include "utest.h"
3236
#include <stdlib.h>
3337

34-
#ifndef DEVICE_FLASH
35-
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
36-
#endif
37-
38-
3938
using namespace utest::v1;
4039
using namespace mbed;
4140

0 commit comments

Comments
 (0)