* tests/misc/sync.sh: Normalize the error messages
when syncing a non read/write directory, as AIX
gives the "Is a directory" error.
Also ensure that sync(1) returns an error for this
case on all systems.
mkdir norw || framework_failure_
chmod 0 norw || framework_failure_
if ! test -r norw; then
- sync norw 2>err
+ returns_ 1 sync norw 2>errt
+ # AIX gives "Is a directory"
+ sed 's/Is a directory/Permission denied/' <errt >err || framework_failure_
printf "sync: error opening 'norw': Permission denied\n" >exp
compare exp err || fail=1
fi