diff options
Diffstat (limited to 'tests/mv/update.sh')
-rwxr-xr-x | tests/mv/update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mv/update.sh b/tests/mv/update.sh index d3ec6120c..f71297c2b 100755 --- a/tests/mv/update.sh +++ b/tests/mv/update.sh @@ -29,7 +29,8 @@ for interactive in '' -i; do # This is a no-op, with no prompt. # With coreutils-6.9 and earlier, using --update with -i would # mistakenly elicit a prompt. - $cp_or_mv $interactive --update old new < /dev/null > out 2>&1 || fail=1 + returns_ 1 $cp_or_mv $interactive --update old new </dev/null >out 2>&1 || + fail=1 compare /dev/null out || fail=1 case "$(cat new)" in new) ;; *) fail=1 ;; esac case "$(cat old)" in old) ;; *) fail=1 ;; esac |