]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: set 'type' field of virStorageSource
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Oct 2017 18:45:50 +0000 (20:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Oct 2017 04:19:18 +0000 (06:19 +0200)
Set the type so that the iterators will work after upcoming
modification.

tests/virstoragetest.c

index ffebd4dc1d6e0754dfa0a61ce1949ef25a81d453..ad4514871aae5ddd816246a2ade9bfc289e25991 100644 (file)
@@ -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