diff options
author | Simon Glass <sjg@chromium.org> | 2023-10-01 19:15:22 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-13 18:39:05 -0500 |
commit | c0e708eb9f3f7b502c018d93f8d4daaaabb29fee (patch) | |
tree | adcbf0adfeb6a4e971b484960bd9e7d41b47af9f /test/print_ut.c | |
parent | 631d8a34f3f6daafe489bff9a04f398ffbf35f8f (diff) |
test: print: Skip test on x86
These tests cannot work on x86 machines as memory at address zero is
not writable. Add a condition to skip these.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/print_ut.c')
-rw-r--r-- | test/print_ut.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/print_ut.c b/test/print_ut.c index b26f6281b0..bb844d2542 100644 --- a/test/print_ut.c +++ b/test/print_ut.c @@ -170,6 +170,10 @@ static int print_display_buffer(struct unit_test_state *uts) u8 *buf; int i; + /* This test requires writable memory at zero */ + if (IS_ENABLED(CONFIG_X86)) + return -EAGAIN; + buf = map_sysmem(0, BUF_SIZE); memset(buf, '\0', BUF_SIZE); for (i = 0; i < 0x11; i++) @@ -275,6 +279,10 @@ static int print_do_hex_dump(struct unit_test_state *uts) u8 *buf; int i; + /* This test requires writable memory at zero */ + if (IS_ENABLED(CONFIG_X86)) + return -EAGAIN; + buf = map_sysmem(0, BUF_SIZE); memset(buf, '\0', BUF_SIZE); for (i = 0; i < 0x11; i++) |