1 /*
2  * Copyright (c) 2018 Nordic Semiconductor ASA
3  * Copyright (c) 2015 Runtime Inc
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #include "settings_test.h"
9 
ZTEST(settings_config,test_config_empty_lookups)10 ZTEST(settings_config, test_config_empty_lookups)
11 {
12 	int rc;
13 	char name[80];
14 	char tmp[64];
15 
16 	strcpy(name, "foo/bar");
17 	rc = settings_runtime_set(name, "tmp", 4);
18 	zassert_true(rc != 0, "settings_runtime_set callback");
19 
20 	strcpy(name, "foo/bar");
21 	rc = settings_runtime_get(name, tmp, sizeof(tmp));
22 	zassert_true(rc == -EINVAL, "settings_runtime_get callback");
23 }
24