projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c35ed6
)
tests: allow empty expected files
author
Michael S. Tsirkin
<mst@redhat.com>
Sat, 5 Oct 2019 21:09:17 +0000
(17:09 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Sat, 5 Oct 2019 21:12:09 +0000
(17:12 -0400)
An empty expected file is a handy way to seed the files
without creating merge conflicts.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/bios-tables-test.c
patch
|
blob
|
history
diff --git
a/tests/bios-tables-test.c
b/tests/bios-tables-test.c
index 9b3d8b0d1b8d4e0e2e6c6ffc6861fb0a5b41f475..8b066cc8f91b024034e063a0a78b5aed1575d19b 100644
(file)
--- a/
tests/bios-tables-test.c
+++ b/
tests/bios-tables-test.c
@@
-334,7
+334,10
@@
try_again:
g_assert(ret);
g_assert_no_error(error);
g_assert(exp_sdt.aml);
- g_assert(exp_sdt.aml_len);
+ if (!exp_sdt.aml_len) {
+ fprintf(stderr, "Warning! zero length expected file '%s'\n",
+ aml_file);
+ }
g_array_append_val(exp_tables, exp_sdt);
}