From 00525b824af4265e7fc74d3655a04da9c4c667f7 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Tue, 16 Sep 2014 10:17:25 +0200 Subject: Fixed freetype test on multiple environments Some environments, apparently regardless to the freetype version, output 155, while others 156. I guess we can accept both ;) This reverts commit 592df890276604c790d02be26b1b3c3710b3b888. --- ext/gd/tests/bug48801_1.phpt | 9 ++++----- ext/gd/tests/bug48801_2.phpt | 25 ------------------------- 2 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 ext/gd/tests/bug48801_2.phpt diff --git a/ext/gd/tests/bug48801_1.phpt b/ext/gd/tests/bug48801_1.phpt index ef2aa1dba7..0ab6d7cdd9 100644 --- a/ext/gd/tests/bug48801_1.phpt +++ b/ext/gd/tests/bug48801_1.phpt @@ -1,13 +1,12 @@ --TEST-- -Bug #48801 (Problem with imagettfbbox) freetype >= 2.4.10 and < 2.4.12 +Bug #48801 (Problem with imagettfbbox) freetype >= 2.4.10 --SKIPIF-- = 2.4.10'); - if(version_compare(get_freetype_version(), '2.4.12') >= 0) die('skip for freetype < 2.4.12'); + if(version_compare(get_freetype_version(), '2.4.10') == -1) die('skip for freetype >= 2.4.10'); ?> --FILE-- --EXPECTF-- (-1, 15) -(156, 15) -(156, -48) +(15%d, 15) +(15%d, -48) (-1, -48) diff --git a/ext/gd/tests/bug48801_2.phpt b/ext/gd/tests/bug48801_2.phpt deleted file mode 100644 index b2a719fa02..0000000000 --- a/ext/gd/tests/bug48801_2.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Bug #48801 (Problem with imagettfbbox) freetype >= 2.4.12 ---SKIPIF-- -= 2.4.12'); -?> ---FILE-- - ---EXPECTF-- -(-1, 15) -(155, 15) -(155, -48) -(-1, -48) -- cgit v1.2.1