zephyr/tests/subsys/settings/functional/file/settings_test_fs.c
Gerard Marull-Paretas 5a44f2e33f include: add missing zephyr/ prefixes
Some files were missed during the migration. This patch adds the prefix
where missing.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-02 18:03:58 +01:00

26 lines
585 B
C

/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (c) 2022 Nordic semiconductor ASA */
#include <zephyr/zephyr.h>
#include <zephyr/ztest.h>
#include <errno.h>
#include <zephyr/settings/settings.h>
#include <zephyr/fs/fs.h>
void test_setting_storage_get(void)
{
int rc;
void *storage;
struct fs_dirent entry;
rc = settings_storage_get(&storage);
zassert_equal(0, rc, "Can't fetch storage reference (err=%d)", rc);
zassert_not_null(storage, "Null reference.");
rc = fs_stat((const char *)storage, &entry);
zassert_true(rc >= 0, "Can't find the file (err=%d)", rc);
}