]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: storage: Use strict version of virStorageFileGetMetadata
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Dec 2019 16:46:18 +0000 (17:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Dec 2019 08:36:48 +0000 (09:36 +0100)
commit7e582fe9959d871f9089040bfba2345b67456ab0
treea2fab5bd9d91a47283338cdebc7caa51b6a1a8eb
parent6c17606b7cce7bf77baef956bde8a0b056666011
tests: storage: Use strict version of virStorageFileGetMetadata

Pass in 'true' as '@report_broken' of virStorageFileGetMetadata to make
it fail in the tests. The most important code paths (when starting the
VM) expect this function to fail rather than silently return partial
data. Switch the test to exercise this more important code path.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virstoragetest.c