diff options
| author | Christian Göttsche | 2026-02-15 20:00:01 +0100 |
|---|---|---|
| committer | jvoisin | 2026-02-15 20:49:09 +0100 |
| commit | 9e94280c0b6356be37b8f9a0a4d2303146863a5b (patch) | |
| tree | 7f1441efa79d29cd9614a1318a9927eb3d20c179 /src/tests/dump_request/dump_request_nonwriteable_folder.phpt | |
| parent | 9ae9a21b60a25aa4df009211dbfbd9ac765e4ecb (diff) | |
tests: add several skip reasons
Co-authored-by: Julien "jvoisin" Voisin <julien.voisin@dustri.org>
Diffstat (limited to 'src/tests/dump_request/dump_request_nonwriteable_folder.phpt')
| -rw-r--r-- | src/tests/dump_request/dump_request_nonwriteable_folder.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/dump_request/dump_request_nonwriteable_folder.phpt b/src/tests/dump_request/dump_request_nonwriteable_folder.phpt index fc70341..25b4c47 100644 --- a/src/tests/dump_request/dump_request_nonwriteable_folder.phpt +++ b/src/tests/dump_request/dump_request_nonwriteable_folder.phpt | |||
| @@ -8,11 +8,11 @@ if ("ubuntu" == getenv("CI_JOB_IMAGE")) { print "skip"; } | |||
| 8 | // root has write privileges "any" folders | 8 | // root has write privileges "any" folders |
| 9 | if (TRUE == function_exists("posix_getuid")) { | 9 | if (TRUE == function_exists("posix_getuid")) { |
| 10 | if (0 == posix_getuid()) { | 10 | if (0 == posix_getuid()) { |
| 11 | print "skip"; | 11 | print "skip Running as root"; |
| 12 | } | 12 | } |
| 13 | } elseif (TRUE == function_exists("shell_exec")) { | 13 | } elseif (TRUE == function_exists("shell_exec")) { |
| 14 | if ("root" == trim(shell_exec("whoami"))) { | 14 | if ("root" == trim(shell_exec("whoami"))) { |
| 15 | print "skip"; | 15 | print "skip Running as root"; |
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 | ||
