提交 4eb74c4f 编写于 作者: M Michael S. Tsirkin

tests: allow empty expected files

An empty expected file is a handy way to seed the files
without creating merge conflicts.
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 6c35ed68
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册