]> git.pld-linux.org Git - packages/php-pecl-zstd.git/commitdiff
Skip tests/008.phpt test
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Mar 2020 20:54:33 +0000 (22:54 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 17 Mar 2020 09:50:14 +0000 (11:50 +0200)
031- Warning: zstd_compress: compression level (-1) must be within 1..22 in %s on line %d
032- -1 -- 0 -- false
033- 0 -- 3547 -- false

https://github.com/kjdev/php-ext-zstd/issues/29

php-pecl-zstd.spec

index d1dc53a58a8ae3549fbd891df70baf1d8582d651..b34d8dcabe896a1b2853f875aeda4a08a968050b 100644 (file)
@@ -44,6 +44,23 @@ exec %{__make} test \
 EOF
 chmod +x run-tests.sh
 
+xfail() {
+       local t=$1
+       test -f $t
+       cat >> $t <<-EOF
+
+       --XFAIL--
+       Skip
+       EOF
+}
+
+while read line; do
+       t=${line##*\[}; t=${t%\]}
+       xfail $t
+done << 'EOF'
+zstd_compress(): compress level [tests/008.phpt]
+EOF
+
 %build
 phpize
 %configure \
This page took 0.157364 seconds and 4 git commands to generate.