summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Kovacs <tyrael@php.net>2015-08-24 08:52:31 +0200
committerFerenc Kovacs <tyrael@php.net>2015-08-24 14:40:21 +0200
commite93d7953df5ae596c820ed6f3af4a86e9ab5f744 (patch)
treeb9ecb7209252acaf925f815a9853e5624b1b1eb7
parent941bbf2067039fec347e2cfd90a3f8976f330245 (diff)
downloadphp-git-e93d7953df5ae596c820ed6f3af4a86e9ab5f744.tar.gz
use another character device in this test as /dev/console seems that it is different for lxc containers
-rw-r--r--ext/standard/tests/file/filetype_variation2.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/filetype_variation2.phpt b/ext/standard/tests/file/filetype_variation2.phpt
index d538e32e6c..bf1d321f12 100644
--- a/ext/standard/tests/file/filetype_variation2.phpt
+++ b/ext/standard/tests/file/filetype_variation2.phpt
@@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no /dev on Windows');
}
-if (!file_exists("/dev/console")) {
+if (!file_exists("/dev/null")) {
die('skip /dev/console not available');
}
?>
@@ -20,7 +20,7 @@ Description: Returns the type of the file. Possible values are fifo, char,
*/
echo "-- Checking for char --\n";
-print( filetype("/dev/console") )."\n";
+print( filetype("/dev/null") )."\n";
?>
===DONE===
--EXPECTF--