summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2012-11-15 12:28:19 +0100
committerJohannes Schlüter <johannes@php.net>2012-11-15 12:28:19 +0100
commit7468fc0e374ad8cd8db482e6c228cdaae8aed075 (patch)
treefb2750e31f7ca914c7179e93b279c4d29b7ac8b9 /tests
parentf5d8b638c7864150db3e7d39ecf3808850c82e0f (diff)
downloadphp-git-7468fc0e374ad8cd8db482e6c228cdaae8aed075.tar.gz
Skip test if directory does not exist
Would be good to run this using a directory which is existing everywhere.
Diffstat (limited to 'tests')
-rw-r--r--tests/security/open_basedir_001.phpt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/security/open_basedir_001.phpt b/tests/security/open_basedir_001.phpt
index e05861a81d..9ea9559942 100644
--- a/tests/security/open_basedir_001.phpt
+++ b/tests/security/open_basedir_001.phpt
@@ -5,6 +5,9 @@ openbase_dir runtime tightning
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for unix');
}
+if (!is_dir("/usr/local/bin")) {
+ die('skip.. no /usr/local/bin on this machine');
+}
--INI--
open_basedir=/usr/local
--FILE--