Fixed wrong check due to fail_if refactoring

pull/481/head
Daniele Lacamera 2024-09-06 16:55:57 +02:00
parent 29729988a8
commit 865e3ee6c3
2 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ static int erased_nvm_bank1 = 0;
static int erased_vault = 0;
const char *argv0;
#include <sys/stat.h>
/* Mocks */
void hal_init(void)

View File

@ -236,8 +236,8 @@ START_TEST (test_parser_borders)
ck_assert_msg(wolfBoot_find_header(bad_buff + 8, HDR_TIMESTAMP, &p) == 0, "Parser error: accessing version field out of bounds");
/* High memory access */
ck_assert(!wolfBoot_find_header(((void *)(0 - 0xF8)), HDR_VERSION, &p) != 0);
ck_assert(!wolfBoot_find_header(((void *)(0 - 0x10)), HDR_VERSION, &p) != 0);
ck_assert(wolfBoot_find_header(((void *)(0 - 0xF8)), HDR_VERSION, &p) == 0);
ck_assert(wolfBoot_find_header(((void *)(0 - 0x10)), HDR_VERSION, &p) == 0);
}
END_TEST