test cases in tests/subsys/settings/fcb, tests/subsys/settings/littlefs, tests/subsys/setttings/nvs all depend on tests/subsys/settings/src and tests/subsys/settings/fs, so update them in one commit. Signed-off-by: Meng xianglin <xianglinx.meng@intel.com>
24 lines
523 B
C
24 lines
523 B
C
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
* Copyright (c) 2015 Runtime Inc
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "settings_test.h"
|
|
|
|
ZTEST(settings_config, test_config_empty_lookups)
|
|
{
|
|
int rc;
|
|
char name[80];
|
|
char tmp[64];
|
|
|
|
strcpy(name, "foo/bar");
|
|
rc = settings_runtime_set(name, "tmp", 4);
|
|
zassert_true(rc != 0, "settings_runtime_set callback");
|
|
|
|
strcpy(name, "foo/bar");
|
|
rc = settings_runtime_get(name, tmp, sizeof(tmp));
|
|
zassert_true(rc == -EINVAL, "settings_runtime_get callback");
|
|
}
|