aboutsummaryrefslogtreecommitdiff
path: root/tests/bios-tables-test.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-10-05 17:09:17 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-10-05 17:12:09 -0400
commit4eb74c4f4300f754060888924e8eec1339d26bf6 (patch)
treed90c63447e7c1a54c49c9211101b5f4d2a5525a1 /tests/bios-tables-test.c
parent6c35ed68c651f644b6c364190ce7b7019d8b7627 (diff)
tests: allow empty expected files
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>
Diffstat (limited to 'tests/bios-tables-test.c')
-rw-r--r--tests/bios-tables-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c
index 9b3d8b0d1b..8b066cc8f9 100644
--- 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);
}