kraghuba                Wed Aug 29 10:11:40 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/standard/tests/file    fnmatch_variation.phpt 
                                        fnmatch_error.phpt 
                                        fnmatch_basic.phpt 
  Log:
  fix test: do not run on MACOS
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/fnmatch_variation.phpt?r1=1.1.2.1&r2=1.1.2.2&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.1.2.1 
php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/fnmatch_variation.phpt:1.1.2.1      Fri May 
25 13:44:23 2007
+++ php-src/ext/standard/tests/file/fnmatch_variation.phpt      Wed Aug 29 
10:11:40 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.1.2.1&r2=1.1.2.2&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.1.2.1 
php-src/ext/standard/tests/file/fnmatch_error.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/fnmatch_error.phpt:1.1.2.1  Fri May 25 
13:44:23 2007
+++ php-src/ext/standard/tests/file/fnmatch_error.phpt  Wed Aug 29 10:11:40 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.1.2.1&r2=1.1.2.2&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.1.2.1 
php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.1.2.2
--- php-src/ext/standard/tests/file/fnmatch_basic.phpt:1.1.2.1  Fri May 25 
13:44:23 2007
+++ php-src/ext/standard/tests/file/fnmatch_basic.phpt  Wed Aug 29 10:11:40 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

Reply via email to