From 07fe4bf9d8359ce21ce946602ad63c4f9337200c Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 1 May 2011 15:54:46 +0200 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ tests/self-check-cleanup.test | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index b52a375..046ecff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-01 Stefano Lattarini + + 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 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 -- 2.7.4