From 1c439aacf88192630a8cbff0122e693334007cfc Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 9 Aug 2009 05:16:17 +0000 Subject: [PATCH] Skip this test on osx because ceil(-0.5) doesn't return -0 like everywhere else because of weird optimizations. --- ext/standard/tests/math/ceil_basic.phpt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/standard/tests/math/ceil_basic.phpt b/ext/standard/tests/math/ceil_basic.phpt index 4264b1cf5e..679460533d 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--