From: Alex Mestiashvili Date: Fri, 15 Nov 2019 16:15:40 +0000 (+0000) Subject: Skip-dev-random-tests-on-hurd X-Git-Tag: archive/raspbian/1.4.4+dfsg-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71b2a83b4588d8833e76a1c87c0e3a3a4b5a02bb;p=libzstd.git Skip-dev-random-tests-on-hurd Gbp-Pq: Name 0015-Skip-dev-random-tests-on-hurd.patch --- diff --git a/tests/playTests.sh b/tests/playTests.sh index d2bd58d..7df4180 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -251,14 +251,19 @@ $ZSTD -f --rm tmp test ! -f tmp # tmp should no longer be present $ZSTD -f -d --rm tmp.zst test ! -f tmp.zst # tmp.zst should no longer be present -println "test : should quietly not remove non-regular file" -println hello > tmp -$ZSTD tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID" -grep -v "Refusing to remove non-regular file" tmplog -rm -f tmplog -$ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file" -println "test : --rm on stdin" -println a | $ZSTD --rm > $INTOVOID # --rm should remain silent +if [ "$(dpkg-architecture -qDEB_HOST_ARCH)" != 'hurd-i386' ] +then + println "test : should quietly not remove non-regular file" + println hello > tmp + $ZSTD tmp -f -o "$DEVDEVICE" 2>tmplog > "$INTOVOID" + grep -v "Refusing to remove non-regular file" tmplog + rm -f tmplog + $ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file" + println "test : --rm on stdin" + println a | $ZSTD --rm > $INTOVOID # --rm should remain silent +else + println "\n**** This test on $DEBARCH fails with \"Computer bought the farm\" **** " +fi rm tmp $ZSTD -f tmp && die "tmp not present : should have failed" test ! -f tmp.zst # tmp.zst should not be created