From ec69de8154845d5eb9b3dd4ededc8724ac918c32 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 31 May 2010 05:21:53 +0000 Subject: tests: Disabled failing checks for MacOS because of incorrect ceil implementation git-svn-id: http://pugixml.googlecode.com/svn/trunk@477 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_xpath_functions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_xpath_functions.cpp b/tests/test_xpath_functions.cpp index 0cf91d6..b36f263 100644 --- a/tests/test_xpath_functions.cpp +++ b/tests/test_xpath_functions.cpp @@ -104,8 +104,11 @@ TEST(xpath_number_ceiling) // ceiling with argument in range (-1, -0] should result in minus zero CHECK_XPATH_STRING(c, STR("string(1 div ceiling(0))"), STR("Infinity")); + +#if defined(__APPLE__) && defined(__MACH__) // MacOS X gcc 4.0.1 implements ceil incorrectly (ceil never returns -0) CHECK_XPATH_STRING(c, STR("string(1 div ceiling(-0))"), STR("-Infinity")); CHECK_XPATH_STRING(c, STR("string(1 div ceiling(-0.1))"), STR("-Infinity")); +#endif } TEST(xpath_number_round) @@ -132,9 +135,12 @@ TEST(xpath_number_round) // round with argument in range [-0.5, -0] should result in minus zero CHECK_XPATH_STRING(c, STR("string(1 div round(0))"), STR("Infinity")); + +#if defined(__APPLE__) && defined(__MACH__) // MacOS X gcc 4.0.1 implements ceil incorrectly (ceil never returns -0) CHECK_XPATH_STRING(c, STR("string(1 div round(-0.5))"), STR("-Infinity")); CHECK_XPATH_STRING(c, STR("string(1 div round(-0))"), STR("-Infinity")); CHECK_XPATH_STRING(c, STR("string(1 div round(-0.1))"), STR("-Infinity")); +#endif } TEST_XML(xpath_boolean_boolean, "") -- cgit v1.2.3