]> granicus.if.org Git - php/commitdiff
- add -win32 versions and skipif
authorPierre Joye <pajoye@php.net>
Fri, 16 Sep 2011 10:45:04 +0000 (10:45 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 16 Sep 2011 10:45:04 +0000 (10:45 +0000)
16 files changed:
ext/standard/tests/dir/dir_variation1.phpt
ext/standard/tests/dir/dir_variation5.phpt
ext/standard/tests/dir/dir_variation6.phpt
ext/standard/tests/dir/dir_variation8.phpt
ext/standard/tests/dir/dir_variation9.phpt
ext/standard/tests/dir/opendir_error2.phpt
ext/standard/tests/dir/opendir_variation1.phpt
ext/standard/tests/dir/opendir_variation6.phpt
ext/standard/tests/dir/scandir_error2.phpt
ext/standard/tests/dir/scandir_variation1.phpt
ext/standard/tests/dir/scandir_variation6.phpt
ext/standard/tests/file/file_get_contents_variation8-win32.phpt
ext/standard/tests/file/file_get_contents_variation8.phpt
ext/standard/tests/file/popen_pclose_error-win32.phpt
ext/standard/tests/file/rename_variation13-win32.phpt
ext/standard/tests/file/tempnam_variation7-win32.phpt

index ad912c008fd3ccd97be6eaa6818f8b67398bd80d..abb471950471e7259029ad317133a92d603b53bc 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test dir() function : usage variations - unexpected value for 'dir' argument
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* 
index 2399c634c5479137010ca868b8cf5200886387cc..c7450eafc0e27a91fe567eaa7605719d0ac9cedf 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test dir() function : usage variations - open a file instead of directory
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* 
index e42057ed1541921559bbfb672def9086b408ac34..71cbf1fa17eaf9791fa57ca64378a4bfe2ac6fa2 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test dir() function : usage variations - non-existent directory
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* 
index a0b74a3f61fafd0f1ad898b706ab850124057a01..5ecf449923063645bfbc0e6d34556b03f17ebcf3 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test dir() function : usage variations - checking with wildcard characters
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* 
index 22f3d5baabf03e3f0798a074915fcbaa710516cc..458d0b896f6d2bf91e0ed2c73d6ab39e6bd85157 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test dir() function : usage variations - relative valid and invalid paths
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* 
index 0762be2ad3095bb2449c90efb00588ade8bf8869..1c724097b09429e20a7c9c71d7f4080c5f461d8f 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test opendir() function : error conditions - Non-existent directory
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : mixed opendir(string $path[, resource $context])
index dc10356f565ee0cd1c91bd4836d3029d26110154..8d195e1e62ad727ac7363f42f8cb56c1adad368e 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test opendir() function : usage variations - different data types as $path arg
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : mixed opendir(string $path[, resource $context])
index 01e8225d59354aedcbe6cb4c733ecc87da891722..f3fc0bd6df901ed4a87530ac9613af6cc796d5a3 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test opendir() function : usage variations - Different wildcards
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : mixed opendir(string $path[, resource $context])
index 1e99a578ac6ce926b8945873fd956730fb6cfa73..b5bfc28c8ef665d12b65bb203d1059a2d9cab14d 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test scandir() function : error conditions - Non-existent directory
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : array scandir(string $dir [, int $sorting_order [, resource $context]])
index 0b35413adacc9439dc510e7ad93c39cb85e7278f..ccd5bb967a4d28dd9223d54b0126e1b460d12c43 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test scandir() function : usage variations - different data types as $dir arg
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : array scandir(string $dir [, int $sorting_order [, resource $context]])
index 5cb595fe75cc3968fcc2fe4ca731d4c1de0102a6..754c6152908bf9478ca3bd8dfae40d87c51bf290 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Test scandir() function : usage variations - Wildcards in directory path
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
+?>
 --FILE--
 <?php
 /* Prototype  : array scandir(string $dir [, int $sorting_order [, resource $context]])
index 43d742a67c8a91b41daed3a6c4322bcfd5711002..bb62eb47fb1860f1409450b3d500be31b7dfc3c5 100644 (file)
@@ -4,8 +4,9 @@ Test file_get_contents() function : variation - obscure filenames
 Dave Kelsey <d_kelsey@uk.ibm.com>
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) != "WIN")
-  die("skip Only run on Windows");
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+  die("skip Valid only on Windows");
+}
 ?>
 --FILE--
 <?php
@@ -62,7 +63,7 @@ bool(false)
 
 -- Filename: NULL --
 
-Warning: file_get_contents(): Filename cannot be empty in %s on line %d
+Warning: file_get_contents(): Filename cannot be empty in %sfile_get_contents_variation8-win32.php on line %d
 bool(false)
 
 -- Filename: "" --
@@ -77,12 +78,12 @@ bool(false)
 
 -- Filename: \0 --
 
-Warning: file_get_contents(): Filename cannot be empty in %s on line %d
-bool(false)
+Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s on line %d
+NULL
 
 -- Filename: array() --
 
-Warning: file_get_contents() expects parameter 1 to be string, array given in %s on line %d
+Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %s on line %d
 NULL
 
 -- Filename: /no/such/file/dir --
@@ -94,4 +95,4 @@ bool(false)
 
 Warning: file_get_contents(php/php): failed to open stream: No such file or directory in %s on line %d
 bool(false)
-===Done===
\ No newline at end of file
+===Done===
index 40efe26830478afdb8fc57d6888e1b22bd211bae..5b325b0e98460ccac2f1a2a8270391d86d43e720 100644 (file)
@@ -4,8 +4,9 @@ Test file_get_contents() function : variation - obscure filenames
 Dave Kelsey <d_kelsey@uk.ibm.com>
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-  die("skip Do not run on Windows");
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip.. Not valid for Windows');
+}
 ?>
 --FILE--
 <?php
index f81cd52605f10b53d3a359625795dab688c79f67..486f369c9a91b13f7bbd8b8b9986e200b5b757bb 100644 (file)
@@ -41,9 +41,9 @@ NULL
 
 Warning: popen() expects exactly 2 parameters, 1 given in %s on line %d
 NULL
-resource(%d) of type (stream)
-'abc.txt' is not recognized as an internal or external command,
-operable program or batch file.
+
+Warning: popen(abc.txt,rw): Invalid argument in %s on line %d
+bool(false)
 
 Warning: pclose() expects exactly 1 parameter, 0 given in %s on line %d
 bool(false)
@@ -54,4 +54,5 @@ bool(false)
 Warning: pclose() expects parameter 1 to be resource, integer given in %s on line %d
 bool(false)
 
---- Done ---
+--- Done ---'abc.txt' is not recognized as an internal or external command,
+operable program or batch file.
index a963b8e8898076f69106fcd943e3221dd8f44535..8e6cc2ed7aea4a011d3f0f0b5f2b8815fb83c6dd 100644 (file)
Binary files a/ext/standard/tests/file/rename_variation13-win32.phpt and b/ext/standard/tests/file/rename_variation13-win32.phpt differ
index 2572f65d02de8c1c7f7e6df75397f61c2a808c4c..1f0d97acfe11f1cfe27a1e8751b47deff2df8a38 100644 (file)
@@ -13,7 +13,7 @@ if(substr(PHP_OS, 0, 3) != "WIN")
 
 /* Passing invalid/non-existing args for $dir, 
      hence the unique files will be created in temporary dir */
-
 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
 /* An array of names, which will be passed as a dir name */ 
 $names_arr = array(
@@ -93,13 +93,13 @@ File created in => temp dir
 Warning: tempnam() expects parameter 1 to be a valid path, string given in %stempnam_variation7-win32.php on line %d
 -- File is not created --
 
-Warning: unlink(): Invalid argument in %stempnam_variation7-win32.php on line %d
+Warning: unlink(): Invalid argument in %s on line %d
 -- Iteration 7 --
 
 Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d
 -- File is not created --
 
-Warning: unlink(): Invalid argument in %stempnam_variation7-win32.php on line %d
+Warning: unlink(): Invalid argument in %s on line %d
 -- Iteration 8 --
 File name is => %s%et%s
 File permissions are => 100666