diff options
author | Remi Collet <remi@remirepo.net> | 2021-09-10 14:16:20 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-09-10 14:16:20 +0200 |
commit | 834a494a68d3d991e3e0243089aaf754583e8ba9 (patch) | |
tree | 0bb1e2cc67a9b2f671ca9c4a7f8fd2498afaecbe | |
parent | b7e06a11b63546e38b6b24513e7f1e37bcf13d86 (diff) |
skip 1 test on 32-bit
-rw-r--r-- | php-laminas-http.spec | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/php-laminas-http.spec b/php-laminas-http.spec index 50bb719..56387d8 100644 --- a/php-laminas-http.spec +++ b/php-laminas-http.spec @@ -185,6 +185,13 @@ require "%{buildroot}%{php_home}/Zend/%{library}/autoload.php"; exit (class_exists("\\Zend\\%{library}\\Client") ? 0 : 1); ' +BIT=$(php -r 'echo PHP_INT_SIZE;') +if [ $BIT -lt 8 ]; then +FILTER='^((?!(testStreamCompression|testSetCookieSetExpiresWithStringDateBiggerThen2038)).)*$' +else +FILTER='^((?!(testStreamCompression)).)*$' +fi + : upstream test suite # testStreamCompression: online test ret=0 @@ -192,7 +199,7 @@ for cmdarg in "php %{phpunit}" php73 php74 php80 php81; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} \ - --filter '^((?!(testStreamCompression)).)*$' \ + --filter $FILTER \ || ret=1 fi done |