summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-01-27 19:46:52 +0000
committerPádraig Brady <P@draigBrady.com>2023-01-27 19:46:52 +0000
commit95bc69a7e71dd2a9b2ca11452be19fa856eb2bbf (patch)
treebaa61de202b217e6b7586d7ee05a75b1707bf566
parent20005ca733e111a61212ee8a6890a54583c55562 (diff)
downloadcoreutils-95bc69a7e71dd2a9b2ca11452be19fa856eb2bbf.tar.gz
tests: ensure we fail if mv --no-copy crashes
* tests/mv/no-copy.sh: Honor `make syntax` check and use the `returns_ 1 ...` pattern.
-rwxr-xr-xtests/mv/no-copy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mv/no-copy.sh b/tests/mv/no-copy.sh
index fba475c03..5a55fdf74 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