Skip to content

Commit f8565a1

Browse files
author
Seppo Takalo
committed
Skip PSA kv_map.get_main_kv_instance() returns NULL
1 parent 701b468 commit f8565a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

TESTS/psa/its_ps/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ void pits_ps_test()
123123

124124
mbed::KVMap &kv_map = mbed::KVMap::get_instance();
125125
mbed::KVStore *kvstore = kv_map.get_main_kv_instance(STR_EXPAND(MBED_CONF_STORAGE_DEFAULT_KV));
126+
if (!kvstore) {
127+
TEST_SKIP_MESSAGE("KVStore not configured");
128+
return;
129+
}
130+
126131
uint32_t kv_get_flags;
127132

128133
flags = PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION;

0 commit comments

Comments
 (0)