From 4941e3fe449228945f6b6570f2da9eeccb89c8a5 Mon Sep 17 00:00:00 2001 From: Matt Ficken Date: Thu, 25 Apr 2013 14:52:48 -0700 Subject: [PATCH] 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. --- tests/basic/req60524-win.phpt | 13 +++++++++++++ tests/basic/req60524.phpt | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/basic/req60524-win.phpt diff --git a/tests/basic/req60524-win.phpt b/tests/basic/req60524-win.phpt new file mode 100644 index 0000000000..b2e7cfdab4 --- /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-- + +--FILE-- + +--EXPECT-- +C:\\Windows 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-- + --FILE-- --EXPECT-- -- 2.40.0