Edward O'Callaghan has uploaded this change for review.

View Change

tests/selfcheck.c: Fix on non-x86 machines

The global const of `board_matches_size` has value `1` on non-x86
machines.

Change-Id: Icbe677d3ef164e998daf898ddbea34f96246677f
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M tests/selfcheck.c
1 file changed, 14 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/54/70554/1
diff --git a/tests/selfcheck.c b/tests/selfcheck.c
index aeccf18..40c9776 100644
--- a/tests/selfcheck.c
+++ b/tests/selfcheck.c
@@ -132,7 +132,7 @@
}
}

-#if CONFIG_INTERNAL == 1
+#if CONFIG_INTERNAL == 1 || defined(__i386__) || defined(__x86_64__)
void selfcheck_board_matches_table(void **state)
{
(void)state; /* unused */

To view, visit change 70554. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icbe677d3ef164e998daf898ddbea34f96246677f
Gerrit-Change-Number: 70554
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-MessageType: newchange