[LTP] [COMMITTED] [PATCH 25/40] Make use of SAFE_UMOUNT()
Cyril Hrubis
chrubis@suse.cz
Tue Oct 3 16:19:58 CEST 2017
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c b/testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c
index a0e28aa30..e165f6c9a 100644
--- a/testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c
+++ b/testcases/kernel/controllers/cgroup_xattr/cgroup_xattr.c
@@ -241,10 +241,7 @@ static void cleanup(void)
SAFE_CHDIR(NULL, "..");
}
if (cgrp_opt[i].mounted) {
- if (umount(cgrp_opt[i].dir) == -1) {
- tst_brkm(TBROK | TERRNO, NULL,
- "Can't unmount: %s", cgrp_opt[i].dir);
- }
+ SAFE_UMOUNT(NULL, cgrp_opt[i].dir);
}
}
--
2.13.5
More information about the ltp
mailing list