From: Pádraig Brady Date: Fri, 27 Jan 2023 19:46:52 +0000 (+0000) Subject: tests: ensure we fail if mv --no-copy crashes X-Git-Tag: v9.2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95bc69a7e71dd2a9b2ca11452be19fa856eb2bbf;p=thirdparty%2Fcoreutils.git tests: ensure we fail if mv --no-copy crashes * tests/mv/no-copy.sh: Honor `make syntax` check and use the `returns_ 1 ...` pattern. --- diff --git a/tests/mv/no-copy.sh b/tests/mv/no-copy.sh index fba475c038..5a55fdf749 100755 --- a/tests/mv/no-copy.sh +++ b/tests/mv/no-copy.sh @@ -25,8 +25,8 @@ mkdir dir || framework_failure_ > dir/a || framework_failure_ > file || framework_failure_ -mv --no-copy dir "$other_partition_tmpdir" && fail=1 -mv --no-copy file "$other_partition_tmpdir" && fail=1 +returns_ 1 mv --no-copy dir "$other_partition_tmpdir" || fail=1 +returns_ 1 mv --no-copy file "$other_partition_tmpdir" || fail=1 mv dir "$other_partition_tmpdir" || fail=1 mv file "$other_partition_tmpdir" || fail=1