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.
This commit is contained in:
Ingo Karkat
2011-01-20 15:34:46 +01:00
parent 819a8285cc
commit a82fd58363

View File

@@ -24,6 +24,11 @@ custom action foo
EOF EOF
chmod -x .todo.actions.d/foo 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 test_todo_session 'nonexecutable action' <<EOF
>>> todo.sh foo >>> todo.sh foo
Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description] Usage: todo.sh [-fhpantvV] [-d todo_config] action [task_number] [task_description]