[Pkg-libvirt-commits] [libguestfs] 52/72: tests: mount-local: Print some more debugging along error paths.

Hilko Bengen bengen at moszumanska.debian.org
Sun Apr 5 15:19:51 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 e4715fd446768e0da348437459016d0a317240fc
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Mar 11 15:08:30 2015 +0000

    tests: mount-local: Print some more debugging along error paths.
    
    Trying to track down a memory leak somewhere.
    
    (cherry picked from commit ffa858469957a0cdfcedb27701c909c1765d06d3)
---
 tests/mount-local/test-parallel-mount-local.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/mount-local/test-parallel-mount-local.c b/tests/mount-local/test-parallel-mount-local.c
index bca3a9f..1b0e04d 100644
--- a/tests/mount-local/test-parallel-mount-local.c
+++ b/tests/mount-local/test-parallel-mount-local.c
@@ -368,12 +368,16 @@ guestunmount (const char *mp, unsigned flags)
 
   status = system (cmd);
   if (!WIFEXITED (status) ||
-      (WEXITSTATUS (status) != 0 && WEXITSTATUS (status) != 2))
+      (WEXITSTATUS (status) != 0 && WEXITSTATUS (status) != 2)) {
+    fprintf (stderr, "guestunmount exited with bad status (%d)\n", status);
     return -1;
+  }
 
   if (flags & GUESTUNMOUNT_RMDIR) {
-    if (rmdir (mp) == -1)
+    if (rmdir (mp) == -1) {
+      perror ("rmdir");
       return -1;
+    }
   }
 
   return 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