diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-12-11 18:04:27 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-12-15 00:11:43 +0000 |
commit | 3985da482405a85779c3fea00455018a0760212b (patch) | |
tree | 320baa23f341769066eae5e4adbaf373fad61d7d /tests | |
parent | a856f53821ebe1b6b9541e2adf7337f7c43542eb (diff) | |
download | flashrom-3985da482405a85779c3fea00455018a0760212b.tar.gz flashrom-3985da482405a85779c3fea00455018a0760212b.tar.bz2 flashrom-3985da482405a85779c3fea00455018a0760212b.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/selfcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/selfcheck.c b/tests/selfcheck.c index aeccf183..e235d8ef 100644 --- a/tests/selfcheck.c +++ b/tests/selfcheck.c @@ -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]; |