diff options
| author | jvoisin | 2018-01-06 20:24:17 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-06 20:24:17 +0100 |
| commit | 5daf1dcacc194d2fcd7260d1f9b06b3a08a8505f (patch) | |
| tree | 41b9ce28b19e723441d576afeb877362dea384be /src | |
| parent | c463edcee51dfab4358f1aff5a70c2f2f940a20b (diff) | |
Ignore a test when running the testsuite as root
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/deny_writable_execution_simulation.phpt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/deny_writable_execution_simulation.phpt b/src/tests/deny_writable_execution_simulation.phpt index 9cfe56c..85b909c 100644 --- a/src/tests/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable_execution_simulation.phpt | |||
| @@ -3,6 +3,7 @@ Readonly execution attempt (simulation mode) | |||
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php | 4 | <?php |
| 5 | if (!extension_loaded("snuffleupagus")) print "skip"; | 5 | if (!extension_loaded("snuffleupagus")) print "skip"; |
| 6 | if (0 == posix_getuid()) print "skip"; // root has write privileges on any file | ||
| 6 | ?> | 7 | ?> |
| 7 | --INI-- | 8 | --INI-- |
| 8 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini | 9 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini |
