]> granicus.if.org Git - php/commitdiff
Clean up files after the tests are run
authorPeter Kokot <peterkokot@gmail.com>
Thu, 27 Jun 2019 00:21:31 +0000 (02:21 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Fri, 28 Jun 2019 18:19:00 +0000 (20:19 +0200)
ext/standard/tests/file/flock_basic.phpt
ext/standard/tests/file/flock_error.phpt

index 7600184bf3c015e54959164a6dda7ebfd8461b7e..812c2958a5ed8ba05a845e07992ddcef3ceb4648 100644 (file)
@@ -9,7 +9,6 @@ Description: PHP supports a portable way of locking complete files
 */
 
 echo "*** Testing flock() fun with file and dir ***\n";
-$file_path = __DIR__;
 
 $lock_file = preg_replace("~\.phpt?$~", null, __FILE__);
 
index eaf141d573d7dcacdf05265c7b4564e61d7a6240..26a8b3d01ff1b6909a21d61727cdc2c934e0f2dd 100644 (file)
@@ -10,7 +10,7 @@ Description: PHP supports a portable way of locking complete files
 
 echo "*** Testing error conditions ***\n";
 
-$file = preg_replace("~\.phpt?$~", null, __FILE__);
+$file = preg_replace("~\.phpt?$~", '.tmp', __FILE__);
 $fp = fopen($file, "w");
 
 /* array of operatons */
@@ -52,7 +52,7 @@ echo "\n*** Done ***\n";
 ?>
 --CLEAN--
 <?php
-$file = __DIR__."/flock.tmp";
+$file = __DIR__."/flock_error.tmp";
 unlink($file);
 ?>
 --EXPECTF--