summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-07-28 19:16:02 +0000
committerJani Taskinen <jani@php.net>2009-07-28 19:16:02 +0000
commit48a514673ac6bf8425afb9ac122763c3308ab0c1 (patch)
tree548a85c8efa4792adb9271dc4020ef63028a61ef /ext/gd
parentd936dd1802517e90179be67ed48f572c24c1d320 (diff)
downloadphp-git-48a514673ac6bf8425afb9ac122763c3308ab0c1.tar.gz
- Skip some tests in 32bit systems, add cleanups where missing
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/tests/bug43073.phpt2
-rw-r--r--ext/gd/tests/bug48555.phpt4
-rw-r--r--ext/gd/tests/bug48732.phpt4
3 files changed, 7 insertions, 3 deletions
diff --git a/ext/gd/tests/bug43073.phpt b/ext/gd/tests/bug43073.phpt
index fce58b4657..df4ffe37e8 100644
--- a/ext/gd/tests/bug43073.phpt
+++ b/ext/gd/tests/bug43073.phpt
@@ -27,6 +27,8 @@ for ($angle = 0.0; $angle < 360.0; $angle += $delta_t) {
}
imagepng($g, "$cwd/bug43073.png");
?>
+--CLEAN--
+<?php @unlink(dirname(__FILE__) . '/bug43073.png'); ?>
--EXPECTF--
(500, 402), (610, 402), (610, 376), (500, 376)
(492, 363), (591, 322), (580, 295), (480, 336)
diff --git a/ext/gd/tests/bug48555.phpt b/ext/gd/tests/bug48555.phpt
index c259501e3a..f2030fece4 100644
--- a/ext/gd/tests/bug48555.phpt
+++ b/ext/gd/tests/bug48555.phpt
@@ -9,9 +9,9 @@ Bug #48555 (ImageFTBBox() differs from previous versions for texts with new line
<?php
$cwd = dirname(__FILE__);
$font = "$cwd/Tuffy.ttf";
-$box = ImageFTBBox(13, 0, $font, "Text without line-break");
+$box = ImageFTBBox(14, 0, $font, "Text without line-break");
echo 'Top without line-break: ' . $box[7] . "\n";
-$box = ImageFTBBox(13, 0, $font, "Text with\nline-break\none more");
+$box = ImageFTBBox(14, 0, $font, "Text with\nline-break\none more");
echo 'Top with line-break: ' . $box[7] . "\n";
?>
--EXPECTF--
diff --git a/ext/gd/tests/bug48732.phpt b/ext/gd/tests/bug48732.phpt
index d4c90113a1..f8cb5e2bac 100644
--- a/ext/gd/tests/bug48732.phpt
+++ b/ext/gd/tests/bug48732.phpt
@@ -16,5 +16,7 @@ $bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\
imagepng($g, "$cwd/bug48732.png");
echo 'Left Bottom: (' . $bbox[0] . ', ' . $bbox[1] . ')';
?>
+--CLEAN--
+<?php @unlink(dirname(__FILE__) . '/bug48732.png'); ?>
--EXPECTF--
-Left Bottom: (0, 47) \ No newline at end of file
+Left Bottom: (0, 47)