]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: ensure we fail if mv --no-copy crashes
authorPádraig Brady <P@draigBrady.com>
Fri, 27 Jan 2023 19:46:52 +0000 (19:46 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 27 Jan 2023 19:46:52 +0000 (19:46 +0000)
* tests/mv/no-copy.sh: Honor `make syntax` check
and use the `returns_ 1 ...` pattern.

tests/mv/no-copy.sh

index fba475c03884394e11548ffe092c3599280f8f88..5a55fdf74972004bc722dc0f98583ac0c8104c1c 100755 (executable)
@@ -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