summaryrefslogtreecommitdiffstats
path: root/tests/chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chip.c')
-rw-r--r--tests/chip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/chip.c b/tests/chip.c
index 5d646ebe0..fd7094cc7 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -23,6 +23,7 @@
#include "programmer.h"
#define MOCK_CHIP_SIZE (8*MiB)
+#define MOCK_CHIP_CONTENT 0xff
static struct {
unsigned int unlock_calls; /* how many times unlock function was called */
@@ -93,6 +94,7 @@ static void setup_chip(struct flashrom_flashctx *flashctx, struct flashrom_layou
flashctx->chip = chip;
g_chip_state.unlock_calls = 0;
+ memset(g_chip_state.buf, MOCK_CHIP_CONTENT, sizeof(g_chip_state.buf));
printf("Creating layout with one included region... ");
assert_int_equal(0, flashrom_layout_new(layout));