From ffa858469957a0cdfcedb27701c909c1765d06d3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 11 Mar 2015 15:08:30 +0000 Subject: [PATCH] tests: mount-local: Print some more debugging along error paths. Trying to track down a memory leak somewhere. --- 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 f4d1a2dc9..2032cbd80 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;