diff options
-rwxr-xr-x | tests/misc/stdbuf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/misc/stdbuf b/tests/misc/stdbuf index a9aed43d5..337504028 100755 --- a/tests/misc/stdbuf +++ b/tests/misc/stdbuf @@ -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 |