mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
test: set 'type' field of virStorageSource
Set the type so that the iterators will work after upcoming modification.
This commit is contained in:
parent
ee4d2df87d
commit
8fdeefe1df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user