these tests work just fine on macos-x

This commit is contained in:
Alexey Zakhlestin 2008-10-21 12:45:35 +00:00
parent 7ff4c359e6
commit a7730c9c8c
5 changed files with 10 additions and 10 deletions

View file

@ -2,8 +2,8 @@
Test copy() function: usage variations - destination dir access perms Test copy() function: usage variations - destination dir access perms
--SKIPIF-- --SKIPIF--
<?php <?php
if( (stristr(PHP_OS, "Darwin")) || (stristr(PHP_OS, "Win")) ) if(substr(PHP_OS, 0, 3) == 'WIN')
die("skip do not run on MacOS/Windows"); die("skip do not run on Windows");
// Skip if being run by root (files are always readable, writeable and executable) // Skip if being run by root (files are always readable, writeable and executable)
$filename = dirname(__FILE__)."/copy_variation15_root_check.tmp"; $filename = dirname(__FILE__)."/copy_variation15_root_check.tmp";
$fp = fopen($filename, 'w'); $fp = fopen($filename, 'w');

View file

@ -2,8 +2,8 @@
Test copy() function: usage variations - destination file access perms Test copy() function: usage variations - destination file access perms
--SKIPIF-- --SKIPIF--
<?php <?php
if( (stristr(PHP_OS, "Darwin")) || (stristr(PHP_OS, "Win")) ) if(substr(PHP_OS, 0, 3) == 'WIN')
die("skip do not run on MacOS/Windows"); die("skip do not run on Windows");
// Skip if being run by root (files are always readable, writeable and executable) // Skip if being run by root (files are always readable, writeable and executable)
$filename = dirname(__FILE__)."/copy_variation9_root_check.tmp"; $filename = dirname(__FILE__)."/copy_variation9_root_check.tmp";

View file

@ -2,8 +2,8 @@
Test fnmatch() function: Basic functionality Test fnmatch() function: Basic functionality
--SKIPIF-- --SKIPIF--
<?php <?php
if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) if(substr(PHP_OS, 0, 3) == 'WIN')
die("skip do not run on MacOS/Windows"); die("skip do not run on Windows");
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -2,8 +2,8 @@
Test fnmatch() function: Error conditions Test fnmatch() function: Error conditions
--SKIPIF-- --SKIPIF--
<?php <?php
if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) if(substr(PHP_OS, 0, 3) == 'WIN')
die("skip do not run on MacOS/Windows"); die("skip do not run on Windows");
?> ?>
--FILE-- --FILE--
<?php <?php

View file

@ -2,8 +2,8 @@
Test fnmatch() function: Variations Test fnmatch() function: Variations
--SKIPIF-- --SKIPIF--
<?php <?php
if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) if(substr(PHP_OS, 0, 3) == 'WIN')
die("skip do not run on MacOS/Windows"); die("skip do not run on Windows");
?> ?>
--FILE-- --FILE--
<?php <?php