]> granicus.if.org Git - php/commitdiff
fix tests
authorRaghubansh Kumar <kraghuba@php.net>
Mon, 20 Aug 2007 03:40:41 +0000 (03:40 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Mon, 20 Aug 2007 03:40:41 +0000 (03:40 +0000)
ext/standard/tests/file/copy_variation12.phpt
ext/standard/tests/file/copy_variation15.phpt
ext/standard/tests/file/copy_variation4.phpt
ext/standard/tests/file/copy_variation5.phpt
ext/standard/tests/file/copy_variation9.phpt
ext/standard/tests/file/fileowner_basic.phpt

index 38e4609e9bfa31f7f538c20132d9a6e7982450bd..ab99813067e569cf4d1192fc2ebdd4612605d676 100644 (file)
@@ -45,7 +45,7 @@ rmdir(dirname(__FILE__)."/copy_variation12");
 Warning: copy(): The first argument to copy() function cannot be a directory in %s/copy_variation12.php on line %d
 bool(false)
 bool(false)
-int(4096)
+int(%d)
 
 Warning: filesize(): stat failed for %s/copy_copy_variation12 in %s/copy_variation12.php on line %d
 bool(false)
@@ -56,7 +56,7 @@ bool(false)
 Warning: copy(): The first argument to copy() function cannot be a directory in %s/copy_variation12.php on line %d
 bool(false)
 bool(false)
-int(4096)
+int(%d)
 
 Warning: filesize(): stat failed for %s/copy_copy_variation12 in %s/copy_variation12.php on line %d
 bool(false)
index 0dd3ea2ab497503aef6b786bbb6073bb6ed34aa5..12521b76bf8681ef0080f47a6a716c59ea1c480d 100644 (file)
@@ -1,11 +1,11 @@
 --TEST--
 Test copy() function: usage variations - destination dir access perms
 --SKIPIF--
+--SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-  die("skip Invalid for Windows");
+if( (substr(PHP_OS, 0, 3) == "WIN") || (stristr(PHP_OS, "Mac")) )
+  die("skip do not run on Win/MacOS");
 ?>
-
 --FILE--
 <?php
 /* Prototype: bool copy ( string $source, string $dest );
index 8e2ca81738d6a3a88eeeffc9c3eff47ff864a959..c570d6083969da3bb2b4f4622882ad6656bf094c 100644 (file)
Binary files a/ext/standard/tests/file/copy_variation4.phpt and b/ext/standard/tests/file/copy_variation4.phpt differ
index c43e7d5f44a06c907f78f697ac9fff39371d8a4d..9cf5b8f0429aa58efa4ccd203fd82475c7639821 100644 (file)
@@ -2,8 +2,8 @@
 Test copy() function: usage variations - destination file names(case sensitive)
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-  die("skip do not run on Windows");
+if( (stristr(PHP_OS, "Mac")) || (substr(PHP_OS, 0, 3) == "WIN") )
+  die("skip do not run on Win/MacOS");
 ?>
 --FILE--
 <?php
index 9e405a8ea8500cb4e5725d30c98c5191730f91b3..b7c3a2ffbf3029ab5e6f0ad9dd52ca477386cc87 100644 (file)
@@ -2,8 +2,8 @@
 Test copy() function: usage variations - destination file access perms 
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-  die("skip Invalid for Windows");
+if( (stristr(PHP_OS, "Mac")) || (substr(PHP_OS, 0, 3) == "WIN") )
+  die("skip do not run on Win/MacOS");
 ?>
 --FILE--
 <?php
index adce3691ea2a2ff95ba8f29d0d65b33ed405ae7c..f3e9370a2ede118593839d71ba3f655ac12782cb 100644 (file)
@@ -56,7 +56,7 @@ array(7) {
   ["name"]=>
   string(%d) %s
   ["passwd"]=>
-  string(1) "x"
+  string(%d) "%s"
   ["uid"]=>
   int(%d)
   ["gid"]=>
@@ -74,9 +74,9 @@ int(%d)
 int(%d)
 
 -- Testing with the standard file or directory --
-int(0)
-int(0)
-int(0)
+int(%d)
+int(%d)
+int(%d)
 
 *** Done ***
 
@@ -87,7 +87,7 @@ array(7) {
   ["name"]=>
   string(%d) %s
   ["passwd"]=>
-  string(1) "x"
+  string(%d) "%s"
   ["uid"]=>
   int(%d)
   ["gid"]=>
@@ -107,8 +107,8 @@ int(%d)
 int(%d)
 
 -- Testing with the standard file or directory --
-int(0)
-int(0)
-int(0)
+int(%d)
+int(%d)
+int(%d)
 
 *** Done ***