1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-14 03:12:10 +02:00

tests: ensure we fail if mv --no-copy crashes

* tests/mv/no-copy.sh: Honor `make syntax` check
and use the `returns_ 1 ...` pattern.
This commit is contained in:
Pádraig Brady
2023-01-27 19:46:52 +00:00
parent 20005ca733
commit 95bc69a7e7

View File

@@ -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