Skip to content

Commit

Permalink
tests: allow empty expected files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin committed Oct 5, 2019
1 parent 6c35ed6 commit 4eb74c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/bios-tables-test.c
Expand Up @@ -334,7 +334,10 @@ static GArray *load_expected_aml(test_data *data)
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);
}
Expand Down

0 comments on commit 4eb74c4

Please sign in to comment.