mirror of https://github.com/wolfSSL/wolfBoot.git
Fixed wrong check due to fail_if refactoring
parent
29729988a8
commit
865e3ee6c3
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue