coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: fix false failure with spaces in the test directory


From: Pádraig Brady
Subject: [PATCH] tests: fix false failure with spaces in the test directory
Date: Fri, 18 Jul 2014 19:25:19 +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 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/misc/env.sh b/tests/misc/env.sh
index 883c58f..d06a1fb 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
-- 
1.7.7.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]