summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2009-08-09 05:16:17 +0000
committerRasmus Lerdorf <rasmus@php.net>2009-08-09 05:16:17 +0000
commitd02332b43f55cd96c7b20be7d3fe578cfcde2f1c (patch)
tree834664f192684f76188067232b06d78e12c865a2
parent4f34f5b0e32e10809553d3c89b093083304b29b4 (diff)
downloadphp-git-d02332b43f55cd96c7b20be7d3fe578cfcde2f1c.tar.gz
Skip this test on osx because ceil(-0.5) doesn't return -0 like
everywhere else because of weird optimizations.
-rw-r--r--ext/standard/tests/math/ceil_basic.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/standard/tests/math/ceil_basic.phpt b/ext/standard/tests/math/ceil_basic.phpt
index 4264b1cf5e..1f3748c3c8 100644
--- a/ext/standard/tests/math/ceil_basic.phpt
+++ b/ext/standard/tests/math/ceil_basic.phpt
@@ -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 @@ for ($i = 0; $i < count($values); $i++) {
float(0)
float(0)
float(1)
-float(-0)
+float(0)
float(1)
float(-1)
float(2)
@@ -63,4 +67,4 @@ float(95)
float(1)
float(0)
float(0)
-===Done=== \ No newline at end of file
+===Done===