mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
perl: Clean up and update the tests.
This commit is contained in:
@@ -45,11 +45,11 @@ ok (1);
|
||||
|
||||
my @lvs = $g->lvs ();
|
||||
if (@lvs != 2 || $lvs[0] ne "/dev/VG/LV1" || $lvs[1] ne "/dev/VG/LV2") {
|
||||
die "h->lvs() returned incorrect result"
|
||||
die "g->lvs() returned incorrect result"
|
||||
}
|
||||
ok (1);
|
||||
|
||||
$g->sync ();
|
||||
$g->shutdown ();
|
||||
ok (1);
|
||||
|
||||
undef $g;
|
||||
|
||||
@@ -52,7 +52,7 @@ foreach (@dirs) {
|
||||
}
|
||||
ok (1);
|
||||
|
||||
$g->sync ();
|
||||
$g->shutdown ();
|
||||
ok (1);
|
||||
|
||||
undef $g;
|
||||
|
||||
@@ -63,7 +63,6 @@ ok (1);
|
||||
|
||||
# Do some stuff.
|
||||
$g->add_drive_ro ("/dev/null");
|
||||
$g->set_autosync (1);
|
||||
ok (1);
|
||||
|
||||
# Close the handle. The close callback should be invoked.
|
||||
|
||||
Reference in New Issue
Block a user