From a82fd583630fd578e8ba2e19b98a789553b3855c Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Thu, 20 Jan 2011 15:34:46 +0100 Subject: [PATCH] Skipping 'nonexecutable action' test on Cygwin. On Cygwin, clearing the executable flag may have no effect, as the Windows ACL may still grant execution rights. In this case, we skip the test instead of failing. --- tests/t8000-actions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/t8000-actions.sh b/tests/t8000-actions.sh index 91e3f19..03a1fbe 100755 --- a/tests/t8000-actions.sh +++ b/tests/t8000-actions.sh @@ -24,6 +24,11 @@ custom action foo EOF chmod -x .todo.actions.d/foo +# On Cygwin, clearing the executable flag may have no effect, as the Windows ACL +# may still grant execution rights. In this case, we skip the test. +if [ -x .todo.actions.d/foo ]; then + SKIP_TESTS="${SKIP_TESTS}${SKIP_TESTS+ }t8000.2" +fi test_todo_session 'nonexecutable action' <>> todo.sh foo Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]