mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
tests/selfcheck.c: Fix on non-x86 machines
The global const of `board_matches_size` has value `1` on non-x86 machines. Therefore strictly greater than zero is correct. Change-Id: Icbe677d3ef164e998daf898ddbea34f96246677f Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70554 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Evan Benn <evanbenn@google.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
parent
a856f53821
commit
3985da4824
@ -139,7 +139,7 @@ void selfcheck_board_matches_table(void **state)
|
||||
|
||||
size_t i;
|
||||
|
||||
assert_true(board_matches_size > 1);
|
||||
assert_true(board_matches_size > 0);
|
||||
assert_true(board_matches[board_matches_size - 1].vendor_name == NULL);
|
||||
for (i = 0; i < board_matches_size - 1; i++) {
|
||||
const struct board_match *b = &board_matches[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user