diff options
author | Remi Collet <remi@remirepo.net> | 2021-12-13 15:38:21 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-12-13 15:38:21 +0100 |
commit | 800c3655edf45480df6fe54f951c3530e149db95 (patch) | |
tree | d5a6254b8e4bdbbb9957601936618ce66fa933c8 | |
parent | a4e2c8a00c5511005c51e28acdbf7563aa673cdd (diff) |
skip 2 tests on 32-bit
-rw-r--r-- | php-bjeavons-zxcvbn-php.spec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/php-bjeavons-zxcvbn-php.spec b/php-bjeavons-zxcvbn-php.spec index 94b8cf3..cd661f6 100644 --- a/php-bjeavons-zxcvbn-php.spec +++ b/php-bjeavons-zxcvbn-php.spec @@ -135,11 +135,17 @@ EOF : Skip known failed test sed -e '/h1dden_26191/d' -i test/ZxcvbnTest.php +: https://github.com/bjeavons/zxcvbn-php/issues/61 +if php -r 'exit(PHP_INT_SIZE < 8 ? 0 : 1);' +then + FILTER="--filter '^((?!(testBinomialMirrorIdentity|testBinomialPascalsTriangleIdentity)).)*$'" +fi + : Run upstream test suite ret=0 for cmd in php php74 php80 php81; do if which $cmd; then - $cmd %{_bindir}/phpunit9 --verbose || ret=1 + $cmd %{_bindir}/phpunit9 $FILTER --verbose || ret=1 fi done exit $ret |