mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
Silence errors on unlink for when tests are run in parallel.
This commit is contained in:
@@ -24,7 +24,7 @@ $imagick->readImageFile($handle);
|
||||
echo "Width: " . $imagick->getImageWidth() . "\n";
|
||||
echo "Height: " . $imagick->getImageHeight() . "\n";
|
||||
|
||||
unlink($file);
|
||||
@unlink($file);
|
||||
|
||||
echo 'success';
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user