]> git.proxmox.com Git - mirror_qemu.git/commit
tests: acpi: move tested tables array allocation outside of test_acpi_dsdt_table()
authorIgor Mammedov <imammedo@redhat.com>
Fri, 29 Dec 2017 15:16:38 +0000 (16:16 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:38 +0000 (21:52 +0200)
commitb24b9d947243c1108b958e544d48ec69d4dfbb2f
tree000ec25ac31e79fff00814328db03aeffa1e2c49
parenta0c167a18470831e359f0538c3cf67907808f13e
tests: acpi: move tested tables array allocation outside of test_acpi_dsdt_table()

at best it's confusing that array for list of tables to be tested
against reference tables is allocated within test_acpi_dsdt_table()
and at worst it would just overwrite list of tables if they were
added before test_acpi_dsdt_table().
Move array initialization to test_acpi_one() before we start
processing tables.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/bios-tables-test.c