[LTP] [COMMITTED] [PATCH 03/13] Make use of SAFE_MKDIR()
Cyril Hrubis
chrubis@suse.cz
Tue Oct 3 17:40:50 CEST 2017
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/syscalls/open/open11.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/open/open11.c b/testcases/kernel/syscalls/open/open11.c
index c9239c6b4..9593671f2 100644
--- a/testcases/kernel/syscalls/open/open11.c
+++ b/testcases/kernel/syscalls/open/open11.c
@@ -396,9 +396,7 @@ static void setup(void)
tst_brkm(TBROK | TERRNO, cleanup, "Symlink %s -> %s failed",
T_REG, T_SYMLINK_REG);
- ret = mkdir(T_DIR, 0755);
- if (ret == -1)
- tst_brkm(TBROK | TERRNO, cleanup, "mkdir %s failed", T_DIR);
+ ret = SAFE_MKDIR(cleanup, T_DIR, 0755);
ret = symlink(T_DIR, T_SYMLINK_DIR);
if (ret == -1)
--
2.13.5
More information about the ltp
mailing list