diff options
author | Raghubansh Kumar <kraghuba@php.net> | 2007-08-29 10:11:40 +0000 |
---|---|---|
committer | Raghubansh Kumar <kraghuba@php.net> | 2007-08-29 10:11:40 +0000 |
commit | 16980248cc8c55a5f523f7aaac8fcb45355a3582 (patch) | |
tree | 1b109cdb7c4cf1e508c10e10f45ec11a2af594f0 | |
parent | a83c2153f97d39c29c3a03c873e880c5d9579291 (diff) | |
download | php-git-16980248cc8c55a5f523f7aaac8fcb45355a3582.tar.gz |
fix test: do not run on MACOS
-rw-r--r-- | ext/standard/tests/file/fnmatch_basic.phpt | 6 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_error.phpt | 6 | ||||
-rw-r--r-- | ext/standard/tests/file/fnmatch_variation.phpt | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/ext/standard/tests/file/fnmatch_basic.phpt b/ext/standard/tests/file/fnmatch_basic.phpt index cc68924e49..322362e8bf 100644 --- a/ext/standard/tests/file/fnmatch_basic.phpt +++ b/ext/standard/tests/file/fnmatch_basic.phpt @@ -2,9 +2,9 @@ Test fnmatch() function: Basic functionality --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip no fnmatch() on Windows'); -} +if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) + die("skip do not run on MacOS/Windows"); +?> --FILE-- <?php /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] ) diff --git a/ext/standard/tests/file/fnmatch_error.phpt b/ext/standard/tests/file/fnmatch_error.phpt index 2bbff23713..4e27bb41ad 100644 --- a/ext/standard/tests/file/fnmatch_error.phpt +++ b/ext/standard/tests/file/fnmatch_error.phpt @@ -2,9 +2,9 @@ Test fnmatch() function: Error conditions --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip no fnmatch() on Windows'); -} +if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) + die("skip do not run on MacOS/Windows"); +?> --FILE-- <?php /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] ) diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt index c3a3bdd2b1..03e8de72e8 100644 --- a/ext/standard/tests/file/fnmatch_variation.phpt +++ b/ext/standard/tests/file/fnmatch_variation.phpt @@ -2,9 +2,9 @@ Test fnmatch() function: Variations --SKIPIF-- <?php -if (substr(PHP_OS, 0, 3) == 'WIN') { - die('skip no fnmatch() on Windows'); -} +if( (stristr(PHP_OS, "Mac")) || (stristr(PHP_OS, "Win")) ) + die("skip do not run on MacOS/Windows"); +?> --FILE-- <?php /* Prototype: bool fnmatch ( string $pattern, string $string [, int $flags] ) |