]> granicus.if.org Git - php/commitdiff
Skip this test on osx because ceil(-0.5) doesn't return -0 like
authorRasmus Lerdorf <rasmus@php.net>
Sun, 9 Aug 2009 05:16:17 +0000 (05:16 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 9 Aug 2009 05:16:17 +0000 (05:16 +0000)
everywhere else because of weird optimizations.

ext/standard/tests/math/ceil_basic.phpt

index 4264b1cf5e49c5cfc7e69514e2cedd69134c704f..679460533d63d04d8a0495aec7a388a1b1fc01e1 100644 (file)
@@ -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(95)
 float(1)
 float(0)
 float(0)
-===Done===
\ No newline at end of file
+===Done===