Skip to content

Commit

Permalink
bios-tables-test: list all tables that differ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mstsirkin committed Jun 3, 2019
1 parent b3e89c9 commit df7cafd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/bios-tables-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit df7cafd

Please sign in to comment.