mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
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 <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Jan 30 16:54:33 UTC 2020 on sn-devel-184 (cherry picked from commit 677bc1b18420e717154dc73f632044239ac3ff9e) Autobuild-User(v4-12-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-12-test): Fri Jan 31 13:57:54 UTC 2020 on sn-devel-184
This commit is contained in:
parent
01afd3a9b6
commit
7b1be793de
@ -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... */
|
||||
|
Loading…
x
Reference in New Issue
Block a user