]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure with spaces in the test directory
authorPádraig Brady <P@draigBrady.com>
Fri, 18 Jul 2014 17:59:29 +0000 (18:59 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 18 Jul 2014 18:24:39 +0000 (19:24 +0100)
* 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`

tests/misc/env.sh

index 883c58f54694de84d6cc359b024d4c545507a192..d06a1fb08e60dc3cfa15ac194601b8889b392bd6 100755 (executable)
@@ -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