4 desc="rename returns EEXIST or ENOTEMPTY if the 'to' argument is a directory and is not empty"
15 expect 0 mkdir ${n0} 0755
16 expect 0 mkdir ${n1} 0755
18 for type in regular dir fifo block char socket symlink; do
19 create_file ${type} ${n1}/${n2}
20 expect "EEXIST|ENOTEMPTY" rename ${n0} ${n1}
21 if [ "${type}" = "dir" ]; then
22 expect 0 rmdir ${n1}/${n2}
24 expect 0 unlink ${n1}/${n2}