Skip to content

Commit

Permalink
Skipping 'nonexecutable action' test on Cygwin.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
inkarkat committed Jan 20, 2011
1 parent 819a828 commit a82fd58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/t8000-actions.sh
Expand Up @@ -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' <<EOF
>>> todo.sh foo
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]
Expand Down

0 comments on commit a82fd58

Please sign in to comment.