summaryrefslogtreecommitdiff
path: root/tests/init.cfg
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-06 15:20:06 +0100
committerJim Meyering <meyering@redhat.com>2010-11-06 15:24:53 +0100
commit6c058b2dabe2e577d56e8c2c82cec550ff82f085 (patch)
tree7c2b1f036027addde33ec24c44c471c4f3332a87 /tests/init.cfg
parent3261914da1dc13165738dcfb77c12dad7b57690f (diff)
downloadcoreutils-6c058b2dabe2e577d56e8c2c82cec550ff82f085.tar.xz
tests: avoid failure due to bug in FreeBSD 8.1's /bin/sh
* tests/init.sh: Arrange not to accept FreeBSD 8.1's /bin/sh, since it fails this test: /bin/sh -c 'f(){ local s=$IFS; test -n "$s"; }; f' * tests/init.cfg (sanitize_path_): Stop-gap measure to work around a bug in FreeBSD 8.1's /bin/sh. We'll un-do this change once all 300+ tests use init.sh.
Diffstat (limited to 'tests/init.cfg')
-rw-r--r--tests/init.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/init.cfg b/tests/init.cfg
index 1048cf39d..778625702 100644
--- a/tests/init.cfg
+++ b/tests/init.cfg
@@ -12,7 +12,9 @@ stderr_fileno_=9
# Avoid the problem by rewriting PATH to exclude unsearchable directories.
sanitize_path_()
{
- local saved_IFS=$IFS
+ # FIXME: remove double quotes around $IFS when all tests use init.sh.
+ # They constitute a work-around for a bug in FreeBSD 8.1's /bin/sh.
+ local saved_IFS="$IFS"
IFS=:
set -- $PATH
IFS=$saved_IFS