diff options
author | Fábio Perez <fabiovmp@gmail.com> | 2015-10-16 13:01:25 -0300 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-10-18 15:45:25 -0700 |
commit | c76fd640e609692724900c54f338a5d99f7d226a (patch) | |
tree | ef640137c06d1983c7819662c496fd630a9ccefb /tests | |
parent | b94f67885cf425f9864d60c25a770e0451a50333 (diff) | |
download | php-git-c76fd640e609692724900c54f338a5d99f7d226a.tar.gz |
Skip some tests for platforms different than x86
These tests are verifying undefined behaviour such as shifting by more than 63
bits and by negative numbers.
Diffstat (limited to 'tests')
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt b/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt index 24da2d0dc4..d9fe7787fc 100644 --- a/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt +++ b/tests/lang/operators/bitwiseShiftLeft_basiclong_64bit.phpt @@ -3,6 +3,7 @@ Test << operator : 64bit long tests --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); +if (strtolower(php_uname('m')) != 'x86_64') die("skip this test is for x86_64 platforms only"); ?> --FILE-- <?php diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt index 0b697c8579..2ae461711b 100644 --- a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt +++ b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt @@ -3,6 +3,7 @@ Test << operator : various numbers as strings --SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+if (strtolower(php_uname('m')) != 'x86_64') die("skip this test is for x86_64 platforms only");
?>
--FILE--
<?php
diff --git a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt index 1029d1942a..68f6b44437 100644 --- a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt +++ b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt @@ -3,6 +3,7 @@ Test >> operator : 64bit long tests --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); +if (strtolower(php_uname('m')) != 'x86_64') die("skip this test is for x86_64 platforms only"); ?> --FILE-- <?php |