We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0487c70 commit d1b0845Copy full SHA for d1b0845
features/storage/TESTS/kvstore/general_tests_phase_1/main.cpp
@@ -292,9 +292,13 @@ static void set_write_once_flag_try_set_twice()
292
//set key "write once" and try to remove it
293
static void set_write_once_flag_try_remove()
294
{
295
+ int res;
296
TEST_SKIP_UNLESS(kvstore != NULL);
297
- int res = kvstore->set(key, data, data_size, KVStore::WRITE_ONCE_FLAG);
298
+ res = kvstore->reset();
299
+ TEST_ASSERT_EQUAL_ERROR_CODE(MBED_SUCCESS, res);
300
+
301
+ res = kvstore->set(key, data, data_size, KVStore::WRITE_ONCE_FLAG);
302
TEST_ASSERT_EQUAL_ERROR_CODE(MBED_SUCCESS, res);
303
304
res = kvstore->remove(key);
0 commit comments