Skip to content

Commit e27ba75

Browse files
committed
Use separate output files in x2gd tests
1 parent 15711a4 commit e27ba75

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

ext/gd/tests/gif2gd.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ gif --> gd1/gd2 conversion test
1515
$cwd = dirname(__FILE__);
1616

1717
echo "GIF to GD1 conversion: ";
18-
echo imagegd(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test.gd1") ? 'ok' : 'failed';
18+
echo imagegd(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test_gif.gd1") ? 'ok' : 'failed';
1919
echo "\n";
2020

2121
echo "GIF to GD2 conversion: ";
22-
echo imagegd2(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test.gd2") ? 'ok' : 'failed';
22+
echo imagegd2(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test_gif.gd2") ? 'ok' : 'failed';
2323
echo "\n";
2424

25-
@unlink($cwd . "/test.gd1");
26-
@unlink($cwd . "/test.gd2");
25+
@unlink($cwd . "/test_gif.gd1");
26+
@unlink($cwd . "/test_gif.gd2");
2727
?>
2828
--EXPECT--
2929
GIF to GD1 conversion: ok

ext/gd/tests/jpg2gd.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ jpeg <--> gd1/gd2 conversion test
1515
$cwd = dirname(__FILE__);
1616

1717
echo "JPEG to GD1 conversion: ";
18-
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd1") ? 'ok' : 'failed';
18+
echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_jpeg.gd1") ? 'ok' : 'failed';
1919
echo "\n";
2020

2121
echo "JPEG to GD2 conversion: ";
22-
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd2") ? 'ok' : 'failed';
22+
echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_jpeg.gd2") ? 'ok' : 'failed';
2323
echo "\n";
2424

2525
echo "GD1 to JPEG conversion: ";
26-
echo imagejpeg(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed';
26+
echo imagejpeg(imagecreatefromgd($cwd . "/test_jpeg.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed';
2727
echo "\n";
2828

2929
echo "GD2 to JPEG conversion: ";
30-
echo imagejpeg(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok' : 'failed';
30+
echo imagejpeg(imagecreatefromgd2($cwd . "/test_jpeg.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok' : 'failed';
3131
echo "\n";
3232

33-
@unlink($cwd . "/test.gd1");
34-
@unlink($cwd . "/test.gd2");
33+
@unlink($cwd . "/test_jpeg.gd1");
34+
@unlink($cwd . "/test_jpeg.gd2");
3535
@unlink($cwd . "/test_gd1.jpeg");
3636
@unlink($cwd . "/test_gd2.jpeg");
3737
?>

ext/gd/tests/png2gd.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ png <--> gd1/gd2 conversion test
1515
$cwd = dirname(__FILE__);
1616

1717
echo "PNG to GD1 conversion: ";
18-
echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd1") ? 'ok' : 'failed';
18+
echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test_png.gd1") ? 'ok' : 'failed';
1919
echo "\n";
2020

2121
echo "PNG to GD2 conversion: ";
22-
echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd2") ? 'ok' : 'failed';
22+
echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test_png.gd2") ? 'ok' : 'failed';
2323
echo "\n";
2424

2525
echo "GD1 to PNG conversion: ";
26-
echo imagepng(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed';
26+
echo imagepng(imagecreatefromgd($cwd . "/test_png.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed';
2727
echo "\n";
2828

2929
echo "GD2 to PNG conversion: ";
30-
echo imagepng(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.png") ? 'ok' : 'failed';
30+
echo imagepng(imagecreatefromgd2($cwd . "/test_png.gd2"), $cwd . "/test_gd2.png") ? 'ok' : 'failed';
3131
echo "\n";
3232

33-
@unlink($cwd . "/test.gd1");
34-
@unlink($cwd . "/test.gd2");
33+
@unlink($cwd . "/test_png.gd1");
34+
@unlink($cwd . "/test_png.gd2");
3535
@unlink($cwd . "/test_gd1.png");
3636
@unlink($cwd . "/test_gd2.png");
3737
?>

ext/gd/tests/xpm2gd.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ xpm --> gd1/gd2 conversion test
1515
$cwd = dirname(__FILE__);
1616

1717
echo "XPM to GD1 conversion: ";
18-
echo imagegd(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test.gd1") ? 'ok' : 'failed';
18+
echo imagegd(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test_xpm.gd1") ? 'ok' : 'failed';
1919
echo "\n";
2020

2121
echo "XPM to GD2 conversion: ";
22-
echo imagegd2(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test.gd2") ? 'ok' : 'failed';
22+
echo imagegd2(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test_xpm.gd2") ? 'ok' : 'failed';
2323
echo "\n";
2424

25-
@unlink($cwd . "/test.gd1");
26-
@unlink($cwd . "/test.gd2");
25+
@unlink($cwd . "/test_xpm.gd1");
26+
@unlink($cwd . "/test_xpm.gd2");
2727
?>
2828
--EXPECT--
2929
XPM to GD1 conversion: ok

0 commit comments

Comments
 (0)