2 # Test that chmod -x file reports an error if the result is executable.
4 if test "$VERBOSE" = yes; then
9 . $srcdir/../lang-default
13 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
14 trap '(exit $?); exit' 1 2 13 15
17 mkdir $tmp || framework_failure=1
18 cd $tmp || framework_failure=1
20 if test $framework_failure = 1; then
21 echo "$0: failure in testing framework" 1>&2
29 (umask 77 && chmod -x file) 2>/dev/null && fail=1
31 if test $framework_failure = 1; then
32 echo "$0: failure in testing framework" 1>&2
36 (exit $fail); exit $fail