]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure with spaces in $PWD
authorPádraig Brady <P@draigBrady.com>
Wed, 30 Nov 2016 15:50:59 +0000 (15:50 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 30 Nov 2016 15:50:59 +0000 (15:50 +0000)
* tests/misc/ptx-overrun.sh: Quote appropriately to avoid this
recently added issue, noticed by `make taint-distcheck`.

tests/misc/ptx-overrun.sh

index 3b46812644f018c3e76393fb7d2ee9c9e488eab4..7b087d34a6d5fc087b6f393b7aeabc404f914568 100755 (executable)
@@ -44,6 +44,6 @@ compare /dev/null out || fail=1
 # Trigger an invalid heap reference noticed by gcc -fsanitize=address
 # from coreutils-8.25 and earlier.
 echo a > a
-ptx -w1 -A $PWD/a >/dev/null || fail=1
+ptx -w1 -A "$PWD/a" >/dev/null || fail=1
 
 Exit $fail