summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2023-01-12 11:00:11 +1100
committerAnastasia Klimchuk <aklm@chromium.org>2023-01-15 10:29:09 +0000
commit78e121b014e54fd01f3cc2e35fd6b623ccd3715f (patch)
tree48f3bc6cd3d47282133bc99199e167156f2fdcf8 /tests
parentd18c099cacca4f3d5635dd5df349efe8077c883e (diff)
downloadflashrom-78e121b014e54fd01f3cc2e35fd6b623ccd3715f.tar.gz
flashrom-78e121b014e54fd01f3cc2e35fd6b623ccd3715f.tar.bz2
flashrom-78e121b014e54fd01f3cc2e35fd6b623ccd3715f.zip
tests/chip.c: Set MOCK_CHIP_CONTENT non-ambiguously
A chip content setup as 0x00 is ambiguous from a zero'ed heap or some erased chips and 0xFF is ambiguous from an erased chip. Change-Id: I15905180141aee54c166ff1c0275d1a7dfde0a46 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/71826 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chip.c b/tests/chip.c
index 1d9cdc9cf..580f4ead0 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -37,7 +37,7 @@
#include "programmer.h"
#define MOCK_CHIP_SIZE (8*MiB)
-#define MOCK_CHIP_CONTENT 0xff
+#define MOCK_CHIP_CONTENT 0xCC /* 0x00 is a zeroed heap and 0xFF is an erased chip. */
static struct {
unsigned int unlock_calls; /* how many times unlock function was called */