1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

tests: skip the stdbuf tests when the abs build directory name is bogus

* tests/misc/stdbuf: Avoid spurious failure when the directory name
from which we'd set LD_PRELOAD contains unsafe characters.
This commit is contained in:
Jim Meyering
2009-08-20 18:27:07 +02:00
parent 3db7c2c03c
commit 7f242fadfa

View File

@@ -30,6 +30,14 @@ case " $built_programs " in
*) skip_test_ 'stdbuf not built';;
esac
# stdbuf fails when the absolute top build dir name contains e.g., space, TAB, NL
lf='
'
case $abs_top_builddir in
*[\\\"\#\$\&\'\`$lf\ \ ]*)
skip_test_ "unsafe absolute build directory name: $abs_top_builddir";;
esac
# Use a fifo rather than a pipe in the tests below
# so that the producer (uniq) will wait until the
# consumer (dd) opens the fifo therefore increasing