diff options
Diffstat (limited to 'regressions')
-rw-r--r-- | regressions/rhbz501893.c | 6 | ||||
-rwxr-xr-x | regressions/test-lvm-mapping.pl | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/regressions/rhbz501893.c b/regressions/rhbz501893.c index fcda5cd3..aa752716 100644 --- a/regressions/rhbz501893.c +++ b/regressions/rhbz501893.c @@ -39,6 +39,12 @@ main (int argc, char *argv[]) assert (guestfs_add_drive (g, NULL) == -1); assert (guestfs_config (g, NULL, NULL) == -1); + /* This optional argument must not be NULL. */ + + assert (guestfs_add_drive_opts (g, "/dev/null", + GUESTFS_ADD_DRIVE_OPTS_FORMAT, NULL, + -1) == -1); + /* These can be safely set to NULL, should be no error. */ assert (guestfs_set_path (g, NULL) == 0); diff --git a/regressions/test-lvm-mapping.pl b/regressions/test-lvm-mapping.pl index 8a38232e..7af2842e 100755 --- a/regressions/test-lvm-mapping.pl +++ b/regressions/test-lvm-mapping.pl @@ -34,7 +34,7 @@ my $g = Sys::Guestfs->new (); #$g->set_verbose (1); #$g->set_trace (1); -$g->add_drive ($testimg); +$g->add_drive_opts ($testimg, format => "raw"); $g->launch (); # Create an arrangement of PVs, VGs and LVs. |