summaryrefslogtreecommitdiff
path: root/tests/basic/req60524.phpt
diff options
context:
space:
mode:
authorMatt Ficken <v-mafick@microsoft.com>2013-04-25 14:52:48 -0700
committerMatt Ficken <v-mafick@microsoft.com>2013-04-25 14:52:48 -0700
commit4941e3fe449228945f6b6570f2da9eeccb89c8a5 (patch)
treeaf2b531ed26abe8fbe09a9deecabc297d7ce8380 /tests/basic/req60524.phpt
parent30802dbc557a25f57db22ecda1c39678791a4aec (diff)
downloadphp-git-4941e3fe449228945f6b6570f2da9eeccb89c8a5.tar.gz
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.
Diffstat (limited to 'tests/basic/req60524.phpt')
-rw-r--r--tests/basic/req60524.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt
index 6803e1fd88..7cc3edfabf 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--