Silence errors on unlink for when tests are run in parallel.

This commit is contained in:
Danack
2024-07-03 12:20:12 +01:00
committed by Jakub Zelenka
parent d2359e98ef
commit 468f727cd6
7 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ $imagick->readImageFile($handle);
echo "Width: " . $imagick->getImageWidth() . "\n";
echo "Height: " . $imagick->getImageHeight() . "\n";
unlink($file);
@unlink($file);
echo 'success';
+1 -1
View File
@@ -19,7 +19,7 @@ $imagick->clear();
$handle = fopen($file, 'rb');
$imagick->readImageFile($handle);
unlink($file);
@unlink($file);
echo 'success';
@@ -134,7 +134,9 @@ echo "Ok";
--CLEAN--
<?php
$f = __DIR__ . "/test_031.png";
if (file_exists($f)) unlink($f);
if (file_exists($f)) {
@unlink($f);
}
?>
--EXPECTF--
Checking white
@@ -31,7 +31,9 @@ echo "Ok";
--CLEAN--
<?php
$f = __DIR__ . '/maskTest.png';
if (file_exists($f)) unlink($f);
if (file_exists($f)) {
unlink($f);
}
?>
--EXPECTF--
Ok
@@ -65,7 +65,9 @@ echo "Ok";
--CLEAN--
<?php
$f = __DIR__ . '/directionTest.png';
if (file_exists($f)) unlink($f);
if (file_exists($f)) {
unlink($f);
}
?>
--EXPECTF--
Ok
+3 -1
View File
@@ -71,7 +71,9 @@ echo "Ok";
--CLEAN--
<?php
$f = __DIR__ . '/setAlphaTest.png';
if (file_exists($f)) unlink($f);
if (file_exists($f)) {
@unlink($f);
}
?>
--EXPECTF--
Ok
+3 -1
View File
@@ -30,7 +30,9 @@ echo "Ok";
--CLEAN--
<?php
$f = __DIR__ . '/houghline_output_image.png';
if (file_exists($f)) unlink($f);
if (file_exists($f)) {
@unlink($f);
}
?>
--EXPECTF--
Ok