]> git.proxmox.com Git - mirror_qemu.git/commit - tests/bios-tables-test.c
tests: acpi: print error unable to dump ACPI table during rebuild
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 May 2019 14:52:03 +0000 (16:52 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 May 2019 13:30:57 +0000 (09:30 -0400)
commitba02ff90ee1dcaf7aa5645075217e555ae2c54ea
tree6cb61c7ab16b26df9e788094a7569adea0e6026f
parentae3c12a015522621931383f0ddbff8a6a00f7866
tests: acpi: print error unable to dump ACPI table during rebuild

Instead of just asserting print the error that lead to assert first.
While at it move assert into rebuild branch, which removes redundant
check done in case of !rebuild branch is taken (the later is taken
care of by g_assert_no_error).

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <1556808723-226478-16-git-send-email-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