1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00

test: test there is no leak of LV on error path

This commit is contained in:
Zdenek Kabelac 2014-09-15 13:44:41 +02:00
parent 75a5de1462
commit f435bef957

View File

@ -38,6 +38,11 @@ aux lvmconf "activation/volume_list = [ \"$vg1\" ]"
# Pool is not active - so it cannot create thin volume # Pool is not active - so it cannot create thin volume
not lvcreate -V10 -T $vg/pool not lvcreate -V10 -T $vg/pool
# Cannot create even new pool
# check there are not left devices (RHBZ #1140128)
not lvcreate -L10 -T $vg/new_pool
check lv_not_exists $vg/new_pool
aux lvmconf "activation/volume_list = [ \"$vg\" ]" aux lvmconf "activation/volume_list = [ \"$vg\" ]"
lvcreate -V10 -T $vg/pool lvcreate -V10 -T $vg/pool