From 79b7cc19042ca287165c4472aad0a2c22d928e2d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Jan 2020 16:18:25 +0100 Subject: [PATCH] s4:torture: Skip the deltest20 as user root The test is meant to be run as a user and not root. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14257 Signed-off-by: Andreas Schneider --- source4/torture/basic/delete.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/torture/basic/delete.c b/source4/torture/basic/delete.c index a8c4e3fa3f1..d14d5a55746 100644 --- a/source4/torture/basic/delete.c +++ b/source4/torture/basic/delete.c @@ -1865,6 +1865,10 @@ static bool deltest20(struct torture_context *tctx, struct smbcli_state *cli1, s NTSTATUS status; int ret; + if (geteuid() == 0) { + torture_skip(tctx, "This test doesn't work as user root."); + } + del_clean_area(cli1, cli2); /* Test 20 -- non-empty directory hardest to get right... */ -- GitLab