OSDN Git Service

bios-tables-test: don't disassemble empty files
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Oct 2021 10:07:45 +0000 (06:07 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Oct 2021 08:44:05 +0000 (04:44 -0400)
commit81d7228647e0bd17d4f4f0434b8ed410fe5f7497
treecd64a509522c8e0ffcfc897ccbc1a6fb901957ad
parent71352aa95bf49d7a0ddab4e685147974c32ebc2c
bios-tables-test: don't disassemble empty files

A recommended way to populate new tables is to have an
empty expected file. In this case, attempts to disassemble
will fail but it is useful to disassemble the actual files.
Detect and skip decompile step in this case.

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