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/deny_writable/dump_deny_writable_execution.phpt | |
| parent | 9ae9a21b60a25aa4df009211dbfbd9ac765e4ecb (diff) | |
tests: add several skip reasons
Co-authored-by: Julien "jvoisin" Voisin <julien.voisin@dustri.org>
Diffstat (limited to 'src/tests/deny_writable/dump_deny_writable_execution.phpt')
| -rw-r--r-- | src/tests/deny_writable/dump_deny_writable_execution.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/deny_writable/dump_deny_writable_execution.phpt b/src/tests/deny_writable/dump_deny_writable_execution.phpt index 2e6bca5..efd3694 100644 --- a/src/tests/deny_writable/dump_deny_writable_execution.phpt +++ b/src/tests/deny_writable/dump_deny_writable_execution.phpt | |||
| @@ -7,11 +7,11 @@ if (!extension_loaded("snuffleupagus")) print "skip"; | |||
| 7 | // root has write privileges on any file | 7 | // root has write privileges on any file |
| 8 | if (TRUE == function_exists("posix_getuid")) { | 8 | if (TRUE == function_exists("posix_getuid")) { |
| 9 | if (0 == posix_getuid()) { | 9 | if (0 == posix_getuid()) { |
| 10 | print "skip"; | 10 | print "skip Running as root"; |
| 11 | } | 11 | } |
| 12 | } elseif (TRUE == function_exists("shell_exec")) { | 12 | } elseif (TRUE == function_exists("shell_exec")) { |
| 13 | if ("root" == trim(shell_exec("whoami"))) { | 13 | if ("root" == trim(shell_exec("whoami"))) { |
| 14 | print "skip"; | 14 | print "skip Running as root"; |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | ?> | 17 | ?> |
