git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove ad-hoc run*locally scripts, replace with './run'
[libguestfs.git]
/
regressions
/
rhbz501893.c
diff --git
a/regressions/rhbz501893.c
b/regressions/rhbz501893.c
index
54c052d
..
aa75271
100644
(file)
--- 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);
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);
/* These can be safely set to NULL, should be no error. */
assert (guestfs_set_path (g, NULL) == 0);
@@
-46,5
+52,5
@@
main (int argc, char *argv[])
assert (guestfs_set_qemu (g, NULL) == 0);
guestfs_close (g);
assert (guestfs_set_qemu (g, NULL) == 0);
guestfs_close (g);
- exit (
0
);
+ exit (
EXIT_SUCCESS
);
}
}