wharmby Mon, 17 Aug 2009 15:54:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287421
Log: Make test more portable. Changed paths: U php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basic.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basiclong_64bit.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_error.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_variation.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basic.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basiclong_64bit.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_error.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_variation.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basic.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basiclong_64bit.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_error.phpt U php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_variation.phpt Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basic.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basic.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test return type and value for expected input acosh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN") - die ("skip - function not supported on Windows"); -?> +if (!function_exists("acosh")) { + die("SKIP acosh - not supported\n"); +} +?> --INI-- precision = 14 --FILE-- Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basiclong_64bit.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basiclong_64bit.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_basiclong_64bit.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,7 +2,8 @@ Test acosh function : 64bit long tests --SKIPIF-- <?php -if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); +if (PHP_INT_SIZE != 8) die("SKIP this test is for 64bit platform only"); +if (!function_exists("acosh")) die("SKIP acosh - not supported\n"); ?> --FILE-- <?php Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_error.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_error.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_error.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test wrong number of arguments for acosh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("acosh")) { + die("SKIP acosh - not supported\n"); +} +?> --FILE-- <?php /* Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_variation.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_variation.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/acosh_variation.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test variations in usage of acosh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("acosh")) { + die("SKIP acosh - not supported\n"); +} +?> --INI-- precision = 10 --FILE-- Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basic.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basic.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test return type and value for expected input asinh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN") - die ("skip - function not supported on Windows"); -?> +if (!function_exists("asinh")) { + die("SKIP asinh - not supported\n"); +} +?> --INI-- precision = 14 --FILE-- Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basiclong_64bit.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basiclong_64bit.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_basiclong_64bit.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -3,6 +3,7 @@ --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); +if (!function_exists("asinh")) die("SKIP asinh - not supported\n"); ?> --FILE-- <?php Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_error.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_error.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_error.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test wrong number of arguments for asinh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("asinh")) { + die("SKIP asinh - not supported\n"); +} +?> --FILE-- <?php /* Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_variation.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_variation.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/asinh_variation.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test variations in usage of asinh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("asinh")) { + die("SKIP asinh - not supported\n"); +} +?> --INI-- precision = 10 --FILE-- Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basic.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basic.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basic.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test return type and value for expected input atanh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("atanh")) { + die("SKIP atanh - not supported\n"); +} +?> --INI-- precision = 14 --FILE-- Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basiclong_64bit.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basiclong_64bit.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_basiclong_64bit.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -3,6 +3,7 @@ --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); +if (!function_exists("atanh")) die("SKIP atanh - not supported\n"); ?> --FILE-- <?php Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_error.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_error.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_error.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test wrong number of arguments for atanh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("atanh")) { + die("SKIP atanh - not supported\n"); +} +?> --FILE-- <?php /* Modified: php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_variation.phpt =================================================================== --- php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_variation.phpt 2009-08-17 15:53:19 UTC (rev 287420) +++ php/php-src/branches/PHP_5_2/ext/standard/tests/math/atanh_variation.phpt 2009-08-17 15:54:51 UTC (rev 287421) @@ -2,9 +2,10 @@ Test variations in usage of atanh() --SKIPIF-- <?php -if(substr(PHP_OS, 0, 3) == "WIN" ) - die ("skip - function not supported on Windows"); -?> +if (!function_exists("atanh")) { + die("SKIP atanh - not supported\n"); +} +?> --INI-- precision = 10 --FILE--
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php