diff options
author | Johannes Schlüter <johannes@php.net> | 2012-11-15 12:28:19 +0100 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2012-11-15 12:28:19 +0100 |
commit | 7468fc0e374ad8cd8db482e6c228cdaae8aed075 (patch) | |
tree | fb2750e31f7ca914c7179e93b279c4d29b7ac8b9 /tests | |
parent | f5d8b638c7864150db3e7d39ecf3808850c82e0f (diff) | |
download | php-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.phpt | 3 |
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-- |