]> granicus.if.org Git - php/commitdiff
- Skip some tests in 32bit systems, add cleanups where missing
authorJani Taskinen <jani@php.net>
Tue, 28 Jul 2009 19:16:02 +0000 (19:16 +0000)
committerJani Taskinen <jani@php.net>
Tue, 28 Jul 2009 19:16:02 +0000 (19:16 +0000)
ext/gd/tests/bug43073.phpt
ext/gd/tests/bug48555.phpt
ext/gd/tests/bug48732.phpt
ext/standard/tests/strings/bug38770.phpt
ext/standard/tests/strings/chunk_split_variation5.phpt
ext/standard/tests/strings/chunk_split_variation8.phpt

index fce58b4657ac80f7fd2d369b866f673aeb16511f..df4ffe37e8b93a4a9b1fe5d344dee21cf867c84f 100644 (file)
@@ -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)
index c259501e3a58ebe67b7bd984ea75b4aeff086457..f2030fece42ae67b780f565e579812641e19f8fd 100644 (file)
@@ -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--
index d4c90113a18bef6b0673e9703d311add696be85e..f8cb5e2bac44f3e9e1c8d60df2a9ce5be892a0b3 100644 (file)
@@ -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)
index 75522ee9d59a9f7fd21de0323ca268da2ce4580e..417794cd25e422f913120fbe155e75d469344348 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Bug #38770 (unpack() broken with longs on 64 bit machines)
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
 --FILE--
 <?php
 
index 4b8b0f8bbc3573ee04b089d0d72b462f9ce923a1..a8f2962e9a286f67d459b07bcae3b6614f73884d 100644 (file)
Binary files a/ext/standard/tests/strings/chunk_split_variation5.phpt and b/ext/standard/tests/strings/chunk_split_variation5.phpt differ
index 2ccd48da2fdbdb1fe97d2fd712ab76505b640c1e..cfb440e923a8535fa2e9e6823f1db2938171995b 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test chunk_split() function : usage variations - different integer values for 'chunklen' with heredoc string as 'str'(Bug#42796)
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+?>
 --FILE--
 <?php
 /* Prototype  : string chunk_split(string $str [, int $chunklen [, string $ending]])