tests/subsys/setting: cleanup deletion tests

Some cleanup in tests code as after duplicates filtering
was introduced there is no need to interpret 0-length readout in
settings h_set handler

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2019-10-31 10:53:37 +01:00 committed by Carles Cufí
commit 858db136c9
4 changed files with 0 additions and 8 deletions

View file

@ -22,7 +22,6 @@
#define SETTINGS_TEST_FCB_VAL_STR_CNT 64
#define SETTINGS_TEST_FCB_FLASH_CNT 4
#define VAL8_DELETED 255U
extern u8_t val8;
extern u8_t val8_un;

View file

@ -101,9 +101,6 @@ int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb,
if (settings_name_steq(name, "mybar", &next) && !next) {
rc = read_cb(cb_arg, &val8, sizeof(val8));
zassert_true(rc >= 0, "SETTINGS_VALUE_SET callback");
if (rc == 0) {
val8 = VAL8_DELETED;
}
return 0;
}

View file

@ -20,7 +20,6 @@
#define SETTINGS_TEST_NVS_VAL_STR_CNT 64
#define SETTINGS_TEST_NVS_FLASH_CNT 4
#define VAL8_DELETED 255U
extern u8_t val8;
extern u8_t val8_un;

View file

@ -99,9 +99,6 @@ int c1_handle_set(const char *name, size_t len, settings_read_cb read_cb,
if (settings_name_steq(name, "mybar", &next) && !next) {
rc = read_cb(cb_arg, &val8, sizeof(val8));
zassert_true(rc >= 0, "SETTINGS_VALUE_SET callback");
if (rc == 0) {
val8 = VAL8_DELETED;
}
return 0;
}