[Pkg-libvirt-commits] [libguestfs] 128/146: test: fuse: Add debugging of commands run in the test.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 70cebf836bdb72d7a44bb5bd17c761ef6386c371
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.
    
    (cherry picked from commit 145db4f62995b3366cde58d58ed49ed491c3ccc3)
---
 fuse/test-fuse.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fuse/test-fuse.c b/fuse/test-fuse.c
index 31b520a..50a5ab5 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