From: Jiri P. <jpa...@we...> - 2009-09-24 14:26:43
|
The tests need to run under root to change their EUID Signed-off-by: Jiri Palecek <jpa...@we...> --- testcases/kernel/syscalls/mq_unlink/mq_unlink01.c | 1 + testcases/kernel/syscalls/utimes/utimes01.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c b/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c index 067656c..85baa2b 100644 --- a/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c +++ b/testcases/kernel/syscalls/mq_unlink/mq_unlink01.c @@ -123,6 +123,7 @@ extern void cleanup() { /* */ /******************************************************************************/ void setup() { + tst_require_root(tst_exit); /* Capture signals if any */ /* Create temporary directories */ TEST_PAUSE; diff --git a/testcases/kernel/syscalls/utimes/utimes01.c b/testcases/kernel/syscalls/utimes/utimes01.c index e52495b..7705269 100644 --- a/testcases/kernel/syscalls/utimes/utimes01.c +++ b/testcases/kernel/syscalls/utimes/utimes01.c @@ -130,6 +130,8 @@ extern void cleanup() { /* */ /******************************************************************************/ void setup() { + tst_require_root(tst_exit); + /* Capture signals if any */ /* Create temporary directories */ TEST_PAUSE; -- 1.6.4.3 |