kraghuba Wed Aug 29 10:13:25 2007 UTC
Modified files:
/php-src/ext/standard/tests/file fnmatch_variation.phpt
fnmatch_error.phpt
fnmatch_basic.phpt
Log:
fix tests: do not run on MACOS
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_variation.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_variation.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.2
php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.3
--- php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.2 Fri May 25
13:50:05 2007
+++ php-src/ext/standard/tests/file/fnmatch_variation.phpt Wed Aug 29
10:13:25 2007
@@ -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] )
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_error.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_error.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_error.phpt:1.2
php-src/ext/standard/tests/file/fnmatch_error.phpt:1.3
--- php-src/ext/standard/tests/file/fnmatch_error.phpt:1.2 Fri May 25
13:50:05 2007
+++ php-src/ext/standard/tests/file/fnmatch_error.phpt Wed Aug 29 10:13:25 2007
@@ -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] )
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_basic.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/file/fnmatch_basic.phpt
diff -u php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.2
php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.3
--- php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.2 Fri May 25
13:50:05 2007
+++ php-src/ext/standard/tests/file/fnmatch_basic.phpt Wed Aug 29 10:13:25 2007
@@ -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] )
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php