[Libguestfs] [PATCH nbdkit 3/9] tests/test-nbd.c: Test the shared=true flag.
Richard W.M. Jones
rjones at redhat.com
Wed Jul 1 07:17:43 UTC 2020
This features lack a test, so add one.
---
tests/test-nbd.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/test-nbd.c b/tests/test-nbd.c
index 2db7c035..ebc9efa3 100644
--- a/tests/test-nbd.c
+++ b/tests/test-nbd.c
@@ -57,13 +57,15 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
/* Now run a second (newstyle) server connecting to the oldstyle
- * server above.
+ * server above. Add shared=true on this handle to test that
+ * feature.
*/
if (asprintf (&sockarg, "socket=%s", sock) < 0) {
perror ("asprintf");
exit (EXIT_FAILURE);
}
- if (test_start_nbdkit ("-e", "wrap", "nbd", sockarg, NULL) == -1)
+ if (test_start_nbdkit ("-e", "wrap", "nbd", sockarg,
+ "shared=true", NULL) == -1)
exit (EXIT_FAILURE);
free (sockarg);
--
2.25.0
More information about the Libguestfs
mailing list