Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2023-07-11 17:40:09 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-07-14 16:02:48 +0300
commitfee0c04e30e31d9034276ecb70cc8dd82e33e761 (patch)
tree5e7fc86c893c516222008504af2b1eaba5038c87 /winsup/testsuite
parent10e50f9617a851469c007cfe98666c8bc22f960b (diff)
Cygwin: testsuite: Drop Adminstrator privileges while running tests
Test access05 and symlink03 expect operations to fail which succeed when we have Adminstrator privileges. There's perhaps a bit of incoherency here: some XFAILed tests expect to run as root (so maybe we need the ability to selectively cygdrop?). Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Diffstat (limited to 'winsup/testsuite')
-rw-r--r--winsup/testsuite/winsup.api/winsup.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/winsup.exp b/winsup/testsuite/winsup.api/winsup.exp
index fb3e3816c..111509511 100644
--- a/winsup/testsuite/winsup.api/winsup.exp
+++ b/winsup/testsuite/winsup.api/winsup.exp
@@ -64,7 +64,7 @@ foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.c $srcdir/$subdir/*/*.{cc
}
file mkdir $tmpdir/$tmpfile
set env(PATH) "$runtime_root:$env(PATH)"
- ws_spawn "$cygrun $exec $testdll_tmpdir/$tmpfile > $redirect_output"
+ ws_spawn "cygdrop $cygrun $exec $testdll_tmpdir/$tmpfile > $redirect_output"
file delete -force $tmpdir/$tmpfile
set env(PATH) "$orig_path"
if { $rv } {