From 1b2438f0a1a211d19b7702067e4664063aa5ea19 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 18 Jul 2014 18:59:29 +0100 Subject: 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` --- tests/misc/env.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/misc') 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 -- cgit v1.2.3-70-g09d2