summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2010-11-23 13:06:46 +0100
committerKarel Zak2011-01-03 12:28:46 +0100
commit64a2331f6d03fd483820ddacd8c62336b2e7df5c (patch)
tree355d0c8008875d636949f509a25f0f593e4193c9 /shlibs/mount/src/context.c
parentlibmount: add new debug messages, fix umount return code (diff)
downloadkernel-qcow2-util-linux-64a2331f6d03fd483820ddacd8c62336b2e7df5c.tar.gz
kernel-qcow2-util-linux-64a2331f6d03fd483820ddacd8c62336b2e7df5c.tar.xz
kernel-qcow2-util-linux-64a2331f6d03fd483820ddacd8c62336b2e7df5c.zip
tests: improve libmount context mount and umount test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context.c')
-rw-r--r--shlibs/mount/src/context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c
index 923d71918..2cc76a0ad 100644
--- a/shlibs/mount/src/context.c
+++ b/shlibs/mount/src/context.c
@@ -1318,6 +1318,8 @@ int test_mount(struct mtest *ts, int argc, char *argv[])
rc = mnt_context_do_mount(cxt);
if (rc)
printf("failed to mount %s\n", strerror(errno));
+ else
+ printf("successfully mounted\n");
mnt_free_context(cxt);
return rc;
@@ -1370,6 +1372,8 @@ int test_umount(struct mtest *ts, int argc, char *argv[])
rc = mnt_context_do_umount(cxt);
if (rc)
printf("failed to umount\n");
+ else
+ printf("successfully umounted\n");
err:
mnt_free_context(cxt);
return rc;