Non-regular-file-test
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Wed, 9 May 2018 11:08:47 +0000 (12:08 +0100)
committerAlexandre Mestiashvili <mestia@debian.org>
Wed, 9 May 2018 11:08:47 +0000 (12:08 +0100)
Gbp-Pq: Name 0015-Non-regular-file-test.patch

tests/playTests.sh

index 182f4a4caf486c758ed860ae6c8d8c9cf90ab6d1..1df995f7e836a66d93db59bed2d262faa4e0a5c9 100755 (executable)
@@ -56,7 +56,7 @@ fi
 
 isWindows=false
 INTOVOID="/dev/null"
-DEVDEVICE="/dev/zero"
+DEVDEVICE="/dev/random"
 case "$OS" in
   Windows*)
     isWindows=true
@@ -175,7 +175,7 @@ $ECHO 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 "$INTONULL" 2>&1 | grep -v "Refusing to remove non-regular file"
+$ZSTD tmp -f -o "$INTOVOID" 2>&1 | grep -v "Refusing to remove non-regular file"
 $ECHO "test : --rm on stdin"
 $ECHO a | $ZSTD --rm > $INTOVOID   # --rm should remain silent
 rm tmp