From: Peter Krempa Date: Thu, 12 Oct 2017 18:45:50 +0000 (+0200) Subject: test: set 'type' field of virStorageSource X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8fdeefe1df9c4016b6b50bf5aa08acd5abf01d57;p=libvirt.git test: set 'type' field of virStorageSource Set the type so that the iterators will work after upcoming modification. --- diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index ffebd4dc1d..ad4514871a 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -580,6 +580,7 @@ testPathRelativePrepare(void) size_t i; for (i = 0; i < ARRAY_CARDINALITY(backingchain); i++) { + backingchain[i].type = VIR_STORAGE_TYPE_FILE; if (i < ARRAY_CARDINALITY(backingchain) - 1) backingchain[i].backingStore = &backingchain[i + 1]; else