]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemufirmwaretest: Produce better message on error
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Mar 2019 07:57:33 +0000 (08:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Mar 2019 15:43:48 +0000 (16:43 +0100)
commitc34b3eefdf2c7af39165c2efb95dd5300ca7a0cb
tree360eb11b7e453600c5cc6b414aaf77a3eae03bf7
parent34086fc59e7c59148409d6780176e84d0f1dbfb4
qemufirmwaretest: Produce better message on error

If qemuFirmwareFetchConfigs() returned more or fewer paths than
expected all that we see is the following error message:

  Expected 5 paths, got 7

While it is technically correct (the best kind of correct), we
can do better:

  Unexpected path (i=0). Expected /some/path got /some/other/path

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tests/qemufirmwaretest.c