]> granicus.if.org Git - php/commitdiff
- fix test
authorPierre Joye <pajoye@php.net>
Mon, 24 Aug 2009 18:43:21 +0000 (18:43 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 24 Aug 2009 18:43:21 +0000 (18:43 +0000)
ext/standard/tests/file/touch_variation5-win32.phpt

index 079093b1cc25d4587321f917ecc6499a7ef160e2..92bd8b7b5b2fa717d73237404b316cb049f9e7f6 100644 (file)
@@ -17,8 +17,9 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
 
 $workDir = "touchVar5.tmp";
 $subDirOrFile = "aSubDirOrFile";
-mkdir($workDir);
-$cwd = getcwd();
+$cwd = __DIR__;
+chdir($cwd);
+if (!mkdir($cwd . '/' . $workDir)) die("cannot create directory $workDir");
 
 $paths = array(
                         // relative