Skip to content

Commit

Permalink
tests: fast_pair: storage: factory_reset: Fix CI build
Browse files Browse the repository at this point in the history
Fix build error "eik may be used uninitialized" on native_posix.

Jira: NCSDK-27570

Signed-off-by: Marek Pieta <[email protected]>
  • Loading branch information
MarekPieta authored and PerMac committed May 23, 2024
1 parent 75a49cf commit 14ecdd9
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,18 @@ static void fp_ram_clear(void)

static void fp_storage_validate_unloaded_eik(void)
{
static const uint8_t eik_store[FP_STORAGE_EIK_LEN] = {
0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF,
0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF,
0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF,
0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF,
};

int err;
int ret;
uint8_t eik[FP_STORAGE_EIK_LEN];

err = fp_storage_eik_save(eik);
err = fp_storage_eik_save(eik_store);
zassert_equal(err, -EACCES, "Expected error before settings load");

err = fp_storage_eik_delete();
Expand Down

0 comments on commit 14ecdd9

Please sign in to comment.