diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2019-06-02 21:29:27 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-06-03 08:05:43 -0400 |
commit | df7cafdeb68b6572fa81d2be9a1910547c4dfafc (patch) | |
tree | 17287d8a1d5fffd4735629e2ecf3927b9de657ef | |
parent | b3e89c941a85f8ed74def2e817859fef5269659a (diff) | |
download | qemu-df7cafdeb68b6572fa81d2be9a1910547c4dfafc.zip |
bios-tables-test: list all tables that differ
Fail after comparing all tables: this way
user gets the full list of tables that need
to be updated or whitelisted.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r-- | tests/bios-tables-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 28d7d427e0..70895e1014 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -364,7 +364,7 @@ static void test_acpi_asl(test_data *data) int i; AcpiSdtTable *sdt, *exp_sdt; test_data exp_data; - gboolean exp_err, err; + gboolean exp_err, err, all_tables_match = true; memset(&exp_data, 0, sizeof(exp_data)); exp_data.tables = load_expected_aml(data); @@ -413,11 +413,13 @@ static void test_acpi_asl(test_data *data) } } } - g_assert(test_acpi_find_diff_allowed(exp_sdt)); + all_tables_match = all_tables_match && + test_acpi_find_diff_allowed(exp_sdt); } g_string_free(asl, true); g_string_free(exp_asl, true); } + g_assert(all_tables_match); free_test_data(&exp_data); } |