Remove new line character from all zassert_* messages. Following script has been used to do this. https://github.com/punitvara/scripts/blob/master/remove_newlinech.py zassert test framework adds newlines character implicitly. issue: #7170 Signed-off-by: Punit Vara <punit.vara@intel.com>
34 lines
664 B
C
34 lines
664 B
C
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
* Copyright (c) 2015 Runtime Inc
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "settings_test.h"
|
|
#include "settings/settings_fcb.h"
|
|
|
|
void test_config_empty_fcb(void)
|
|
{
|
|
int rc;
|
|
struct settings_fcb cf;
|
|
|
|
config_wipe_srcs();
|
|
config_wipe_fcb(fcb_sectors, ARRAY_SIZE(fcb_sectors));
|
|
|
|
cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC;
|
|
cf.cf_fcb.f_sectors = fcb_sectors;
|
|
cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors);
|
|
|
|
rc = settings_fcb_src(&cf);
|
|
zassert_true(rc == 0, "settings_fcb_src call should succeed");
|
|
|
|
/*
|
|
* No values
|
|
*/
|
|
settings_load();
|
|
|
|
config_wipe_srcs();
|
|
ctest_clear_call_state();
|
|
}
|