diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2007-11-30 12:14:57 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-30 12:14:57 +0100 |
commit | 0db207c66c8b992f4c123c6a25f3cb1809ec4149 (patch) | |
tree | 3ec0294efce27ba341a7a2ec7b7255529aa6b808 /tests/misc | |
parent | d7ed3bcb8dd785f1404d6f68f53c6b5668ac56f8 (diff) | |
download | coreutils-0db207c66c8b992f4c123c6a25f3cb1809ec4149.tar.xz |
Add quotes to protect against white space in build dir name.
* tests/check.mk (TESTS_ENVIRONMENT): Quote $(abs_srcdir).
* tests/chmod/setgid: Quote absolute names.
* tests/misc/help-version: Likewise.
* tests/misc/pwd-unreadable-parent: Likewise.
* tests/rmdir/ignore: Likewise.
* tests/test-lib.sh: Likewise.
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/help-version | 14 | ||||
-rwxr-xr-x | tests/misc/pwd-unreadable-parent | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version index 6da675f38..6c1565dcd 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -75,9 +75,9 @@ for lang in C fr da; do # false fails even when invoked with --help or --version. if test $i = false; then - env LC_MESSAGES=$lang $abs_top_builddir/src/$i --help \ + env LC_MESSAGES=$lang "$abs_top_builddir/src/$i" --help \ >/dev/null && fail=1 - env LC_MESSAGES=$lang $abs_top_builddir/src/$i --version \ + env LC_MESSAGES=$lang "$abs_top_builddir/src/$i" --version \ >/dev/null && fail=1 continue fi @@ -86,8 +86,8 @@ for lang in C fr da; do test $i = install && i=ginstall # Make sure they exit successfully, under normal conditions. - $abs_top_builddir/src/$i --help > h-$i || fail=1 - $abs_top_builddir/src/$i --version >/dev/null || fail=1 + "$abs_top_builddir/src/$i" --help > h-$i || fail=1 + "$abs_top_builddir/src/$i" --version >/dev/null || fail=1 # Make sure they mention the bug-reporting address in --help output. grep "$PACKAGE_BUGREPORT" h-$i > /dev/null || fail=1 @@ -95,8 +95,8 @@ for lang in C fr da; do # Make sure they fail upon `disk full' error. if test -w /dev/full && test -c /dev/full; then - $abs_top_builddir/src/$i --help >/dev/full 2>/dev/null && fail=1 - $abs_top_builddir/src/$i --version >/dev/full 2>/dev/null && fail=1 + "$abs_top_builddir/src/$i" --help >/dev/full 2>/dev/null && fail=1 + "$abs_top_builddir/src/$i" --version >/dev/full 2>/dev/null && fail=1 status=$? test $i = [ && prog=lbracket || prog=$i eval "expected=\$expected_failure_status_$prog" @@ -213,7 +213,7 @@ for i in $built_programs; do # echo ================== $i test $i = [ && prog=lbracket || prog=$i eval "args=\$${prog}_args" - if $abs_top_builddir/src/$i $args < $tmp_in > $tmp_out; then + if "$abs_top_builddir/src/$i" $args < $tmp_in > $tmp_out; then : # ok else echo FAIL: $i diff --git a/tests/misc/pwd-unreadable-parent b/tests/misc/pwd-unreadable-parent index 57557c673..f3ff874d8 100755 --- a/tests/misc/pwd-unreadable-parent +++ b/tests/misc/pwd-unreadable-parent @@ -47,7 +47,7 @@ chmod a=x .. || framework_failure pwd_exe="$abs_top_builddir/src/pwd" fail=0 -$pwd_exe > exp || fail=1 +"$pwd_exe" > exp || fail=1 readlink -ev . > out || fail=1 compare out exp || fail=1 |