com php-src: use another character device in this test as /dev/console seems that it is different for lxc containers: ext/standard/tes
ts/file/filetype_variation2.phpt

From: Date: Mon, 24 Aug 2015 12:40:21 +0000
Subject: com php-src: use another character device in this test as /dev/console seems that it is different for lxc containers: ext/standard/tes
ts/file/filetype_variation2.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89461@lists.php.net to get a copy of this message
Commit: e93d7953df5ae596c820ed6f3af4a86e9ab5f744 Author: Ferenc Kovacs <tyrael@php.net> Mon, 24 Aug 2015 08:52:31 +0200 Parents: 941bbf2067039fec347e2cfd90a3f8976f330245 Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e93d7953df5ae596c820ed6f3af4a86e9ab5f744 Log: use another character device in this test as /dev/console seems that it is different for lxc containers Changed paths: M ext/standard/tests/file/filetype_variation2.phpt Diff: diff --git a/ext/standard/tests/file/filetype_variation2.phpt b/ext/standard/tests/file/filetype_variation2.phpt index d538e32..bf1d321 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--

« previous php.cvs (#89461) next »