[Pkg-libvirt-commits] [libguestfs] 191/384: test: fuse: Add debugging of commands run in the test.
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:56:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 145db4f62995b3366cde58d58ed49ed491c3ccc3
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Thu Jan 22 10:44:32 2015 +0000
test: fuse: Add debugging of commands run in the test.
---
fuse/test-fuse.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/fuse/test-fuse.c b/fuse/test-fuse.c
index 887dad8..84d58e8 100644
--- a/fuse/test-fuse.c
+++ b/fuse/test-fuse.c
@@ -139,6 +139,8 @@ main (int argc, char *argv[])
}
res = test_fuse ();
+ printf ("test_fuse() returned %d\n", res);
+ fflush (stdout);
/* Move out of the mountpoint (otherwise our cwd will prevent the
* mountpoint from being unmounted below).
@@ -147,9 +149,14 @@ main (int argc, char *argv[])
/* Who's using the mountpoint? Should be no one. */
snprintf (cmd, sizeof cmd, "/sbin/fuser %s", mountpoint);
+ printf ("%s\n", cmd);
+ fflush (stdout);
ignore_value (system (cmd));
+ /* Unmount it. */
snprintf (cmd, sizeof cmd, "guestunmount %s", mountpoint);
+ printf ("%s\n", cmd);
+ fflush (stdout);
r = system (cmd);
if (!WIFEXITED (r) || WEXITSTATUS (r) != EXIT_SUCCESS)
fprintf (stderr, "%s: warning: guestunmount command failed\n", argv[0]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list