From 78e121b014e54fd01f3cc2e35fd6b623ccd3715f Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Thu, 12 Jan 2023 11:00:11 +1100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/71826 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk --- tests/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3