summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-07-18 18:59:29 +0100
committerPádraig Brady <P@draigBrady.com>2014-07-18 19:24:39 +0100
commit1b2438f0a1a211d19b7702067e4664063aa5ea19 (patch)
tree65613aedde63a1faf06e437d757356bc55fb705e /tests
parent09937e9d070619ae696f3f93055e7a4921a51163 (diff)
downloadcoreutils-1b2438f0a1a211d19b7702067e4664063aa5ea19.tar.xz
tests: fix false failure with spaces in the test directory
* tests/misc/env.sh: Skip if we can't execute the generated shebang, which would be the case if there are spaces in the directory hierarchy. This is triggered by `make distcheck`
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/env.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/env.sh b/tests/misc/env.sh
index 883c58f54..d06a1fb08 100755
--- a/tests/misc/env.sh
+++ b/tests/misc/env.sh
@@ -25,6 +25,10 @@ echo "#!$abs_top_builddir/src/echo simple_echo" > simple_echo \
|| framework_failure_
chmod a+x simple_echo || framework_failure_
+# Verify we can run the shebang which is not the case if
+# there are spaces in $abs_top_builddir.
+./simple_echo || skip_ "Error running simple_echo script"
+
# Verify clearing the environment
a=1
export a