svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt
trunk/ext/standard/tests/math/ceil_basic.phpt

From: Date: Sun, 09 Aug 2009 05:16:17 +0000
Subject: svn: /php/php-src/ branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt
trunk/ext/standard/tests/math/ceil_basic.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60072@lists.php.net to get a copy of this message
rasmus Sun, 09 Aug 2009 05:16:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286942 Log: Skip this test on osx because ceil(-0.5) doesn't return -0 like everywhere else because of weird optimizations. Changed paths: U php/php-src/branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt U php/php-src/branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt U php/php-src/trunk/ext/standard/tests/math/ceil_basic.phpt Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 04:46:30 UTC (rev 286941) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 05:16:17 UTC (rev 286942) @@ -2,6 +2,10 @@ Test ceil() - basic function test for ceil() --INI-- precision=14 +--SKIPIF-- +if (strtolower(PHP_OS) == 'darwin') { + die('SKIP OSX does weird things with -0 so this test doesn't work there'); +} --FILE-- <?php /* Prototype : float ceil ( float $value ) @@ -63,4 +67,4 @@ float(1) float(0) float(0) -===Done=== \ No newline at end of file +===Done=== Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 04:46:30 UTC (rev 286941) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 05:16:17 UTC (rev 286942) @@ -2,6 +2,10 @@ Test ceil() - basic function test for ceil() --INI-- precision=14 +--SKIPIF-- +if (strtolower(PHP_OS) == 'darwin') { + die('SKIP OSX does weird things with -0 so this test doesn't work there'); +} --FILE-- <?php /* Prototype : float ceil ( float $value ) @@ -45,7 +49,7 @@ float(0) float(0) float(1) -float(-0) +float(0) float(1) float(-1) float(2) @@ -63,4 +67,4 @@ float(1) float(0) float(0) -===Done=== \ No newline at end of file +===Done=== Modified: php/php-src/trunk/ext/standard/tests/math/ceil_basic.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 04:46:30 UTC (rev 286941) +++ php/php-src/trunk/ext/standard/tests/math/ceil_basic.phpt 2009-08-09 05:16:17 UTC (rev 286942) @@ -2,6 +2,10 @@ Test ceil() - basic function test for ceil() --INI-- precision=14 +--SKIPIF-- +if (strtolower(PHP_OS) == 'darwin') { + die('SKIP OSX does weird things with -0 so this test doesn't work there'); +} --FILE-- <?php /* Prototype : float ceil ( float $value ) @@ -63,4 +67,4 @@ float(1) float(0) float(0) -===Done=== \ No newline at end of file +===Done===

« previous php.cvs (#60072) next »