git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631d8a3
)
test: print: Skip test on x86
author
Simon Glass
<sjg@chromium.org>
Mon, 2 Oct 2023 01:15:22 +0000
(19:15 -0600)
committer
Tom Rini
<trini@konsulko.com>
Wed, 13 Dec 2023 23:39:05 +0000
(18:39 -0500)
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>
test/print_ut.c
patch
|
blob
|
history
diff --git
a/test/print_ut.c
b/test/print_ut.c
index
b26f628
..
bb844d2
100644
(file)
--- 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++)