zephyr/tests/subsys/settings/src/settings_empty_lookups.c
Piotr Golyzniak 677ffc883a tests: settings: fix wrong test case names
Change test case names to proper one, which start from "test_"
characters.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
2022-02-07 09:29:09 -05:00

24 lines
510 B
C

/*
* Copyright (c) 2018 Nordic Semiconductor ASA
* Copyright (c) 2015 Runtime Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "settings_test.h"
void test_config_empty_lookups(void)
{
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");
}