Commit:    4941e3fe449228945f6b6570f2da9eeccb89c8a5
Author:    Matt Ficken <v-maf...@microsoft.com>         Thu, 25 Apr 2013 
14:52:48 -0700
Parents:   30802dbc557a25f57db22ecda1c39678791a4aec
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=4941e3fe449228945f6b6570f2da9eeccb89c8a5

Log:
Adding sys_get_temp_dir() test specific for Windows.

sys_get_temp_dir() returns a Windows-style path (\\ instead of /) on
Windows. This is why a Windows specific test is required.

Skipping req60524.phpt on Windows. Adding -win32 fork for use only on
Windows.

Fixes test bug #64396.

Bugs:
https://bugs.php.net/64396

Changed paths:
  A  tests/basic/req60524-win.phpt
  M  tests/basic/req60524.phpt


Diff:
diff --git a/tests/basic/req60524-win.phpt b/tests/basic/req60524-win.phpt
new file mode 100644
index 0000000..b2e7cfd
--- /dev/null
+++ b/tests/basic/req60524-win.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Req #60524 (Specify temporary directory)
+--INI--
+sys_temp_dir=C:\Windows
+--SKIPIF--
+<?php
+if( substr(PHP_OS, 0, 3) != "WIN" )
+  die('skip Run only on Windows');
+?>
+--FILE--
+<?php echo sys_get_temp_dir(); ?>
+--EXPECT--
+C:\\Windows
diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt
index 6803e1f..7cc3edf 100644
--- a/tests/basic/req60524.phpt
+++ b/tests/basic/req60524.phpt
@@ -2,6 +2,12 @@
 Req #60524 (Specify temporary directory)
 --INI--
 sys_temp_dir=/path/to/temp/dir
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+    die('skip non-windows only test');
+}
+?>
 --FILE--
 <?php echo sys_get_temp_dir(); ?>
 --EXPECT--


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to