From: Michael S. Tsirkin Date: Sat, 5 Oct 2019 21:09:17 +0000 (-0400) Subject: tests: allow empty expected files X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4eb74c4f4300f754060888924e8eec1339d26bf6;p=qemu.git 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 --- 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); }