tests: settings: functional: nvs: adding posix targets

Added native_posix and native_posix_64 targets to the functional tests
of NVS.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
Kamil Piszczek 2019-10-11 15:06:30 +02:00 committed by Carles Cufí
commit 7cd1a1bd7b
4 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1 @@
CONFIG_SETTINGS_NVS_SECTOR_SIZE_MULT=8192

View file

@ -0,0 +1 @@
CONFIG_SETTINGS_NVS_SECTOR_SIZE_MULT=8192

View file

@ -1,4 +1,4 @@
tests:
system.settings.functional.nvs:
platform_whitelist: qemu_x86
platform_whitelist: qemu_x86 native_posix native_posix_64
tags: settings_nvs

View file

@ -30,7 +30,7 @@ LOG_MODULE_REGISTER(settings_basic_test);
*/
static void test_clear_settings(void)
{
#if IS_ENABLED(CONFIG_SETTINGS_FCB)
#if IS_ENABLED(CONFIG_SETTINGS_FCB) || IS_ENABLED(CONFIG_SETTINGS_NVS)
const struct flash_area *fap;
int rc = flash_area_open(DT_FLASH_AREA_STORAGE_ID, &fap);