mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 04:44:46 +00:00
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>
This commit is contained in:
parent
631d8a34f3
commit
c0e708eb9f
1 changed files with 8 additions and 0 deletions
|
@ -170,6 +170,10 @@ static int print_display_buffer(struct unit_test_state *uts)
|
||||||
u8 *buf;
|
u8 *buf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* This test requires writable memory at zero */
|
||||||
|
if (IS_ENABLED(CONFIG_X86))
|
||||||
|
return -EAGAIN;
|
||||||
|
|
||||||
buf = map_sysmem(0, BUF_SIZE);
|
buf = map_sysmem(0, BUF_SIZE);
|
||||||
memset(buf, '\0', BUF_SIZE);
|
memset(buf, '\0', BUF_SIZE);
|
||||||
for (i = 0; i < 0x11; i++)
|
for (i = 0; i < 0x11; i++)
|
||||||
|
@ -275,6 +279,10 @@ static int print_do_hex_dump(struct unit_test_state *uts)
|
||||||
u8 *buf;
|
u8 *buf;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* This test requires writable memory at zero */
|
||||||
|
if (IS_ENABLED(CONFIG_X86))
|
||||||
|
return -EAGAIN;
|
||||||
|
|
||||||
buf = map_sysmem(0, BUF_SIZE);
|
buf = map_sysmem(0, BUF_SIZE);
|
||||||
memset(buf, '\0', BUF_SIZE);
|
memset(buf, '\0', BUF_SIZE);
|
||||||
for (i = 0; i < 0x11; i++)
|
for (i = 0; i < 0x11; i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue