* tests/self-check-cleanup.test: Add trailing `:' to the test code
passed to $SHELL, otherwise older versions of bash (at least 2.05
and 3.2.39) fail to correctly remove the temporary directory in
the exit trap.
---
 ChangeLog                     |    8 ++++++++
 tests/self-check-cleanup.test |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b52a375..fc73c6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-01  Stefano Lattarini  <[email protected]>
+
+       tests: fix self check spurious failure with older bash versions
+       * tests/self-check-cleanup.test: Add trailing `:' to the test code
+       passed to $SHELL, otherwise older versions of bash (at least 2.05
+       and 3.2.39) fail to correctly remove the temporary directory in
+       the exit trap.
+
 2011-04-29  Stefano Lattarini  <[email protected]>
 
        testsuite: more environment sanitization
diff --git a/tests/self-check-cleanup.test b/tests/self-check-cleanup.test
index 390d9b5..945194f 100755
--- a/tests/self-check-cleanup.test
+++ b/tests/self-check-cleanup.test
@@ -67,6 +67,7 @@ $SHELL -c '
   cd ..
   chmod 000 dir/sub/* dir/file dir/symlink
   chmod 000 dir/sub dir
+  :
 ' dummy.test
 test ! -f $dir
 test ! -d $dir
-- 
1.7.2.3

Reply via email to