[LTP] [PATCH] setreuid07: Add missing .needs_tmpdir = 1
Hui Min Mina Chou
minachou@andestech.com
Wed Mar 20 08:42:23 CET 2024
Run tests in the tmporary directory.
Fixes: 199f7bc81b67 ("setreuid07.c: Rewrite the test using new LTP API")
Signed-off-by: Hui Min Mina Chou <minachou@andestech.com>
---
testcases/kernel/syscalls/setreuid/setreuid07.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/setreuid/setreuid07.c b/testcases/kernel/syscalls/setreuid/setreuid07.c
index 5faf3cb7f600..62b9ec4cdcb8 100644
--- a/testcases/kernel/syscalls/setreuid/setreuid07.c
+++ b/testcases/kernel/syscalls/setreuid/setreuid07.c
@@ -60,5 +60,6 @@ static struct tst_test test = {
.setup = setup,
.test_all = run,
.needs_root = 1,
- .forks_child = 1
+ .forks_child = 1,
+ .needs_tmpdir = 1,
};
--
2.34.1
More information about the ltp
mailing list