From 1b4e860bde9a0a3596a8b24552d943744db86df9 Mon Sep 17 00:00:00 2001 From: Alex Mestiashvili Date: Tue, 20 Aug 2019 12:33:51 +0100 Subject: [PATCH] Skip-dev-random-tests-on-hurd Gbp-Pq: Name 0015-Skip-dev-random-tests-on-hurd.patch --- tests/playTests.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/tests/playTests.sh b/tests/playTests.sh index c9efe33..c847f22 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -220,14 +220,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 -- 2.30.2