From 7468fc0e374ad8cd8db482e6c228cdaae8aed075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Thu, 15 Nov 2012 12:28:19 +0100 Subject: [PATCH] Skip test if directory does not exist Would be good to run this using a directory which is existing everywhere. --- tests/security/open_basedir_001.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/security/open_basedir_001.phpt b/tests/security/open_basedir_001.phpt index e05861a81db..9ea95599425 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--