| #!/bin/sh |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src |
| print_ver_ mv |
| |
| mkdir -p a/t b/t || framework_failure_ |
| touch a/t/f || framework_failure_ |
| |
| |
| |
| |
| |
| mv b/t a 2> out && fail=1 |
| |
| |
| sed 's/: File exists/: Directory not empty/'<out>o1;mv o1 out |
| sed 's/: Device or resource busy/: Directory not empty/'<out>o1;mv o1 out |
| |
| cat <<\EOF > exp || framework_failure_ |
| mv: cannot move 'b/t' to 'a/t': Directory not empty |
| EOF |
| |
| compare exp out || fail=1 |
| |
| Exit $fail |