From 95bc69a7e71dd2a9b2ca11452be19fa856eb2bbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Fri, 27 Jan 2023 19:46:52 +0000 Subject: [PATCH] tests: ensure we fail if mv --no-copy crashes * tests/mv/no-copy.sh: Honor `make syntax` check and use the `returns_ 1 ...` pattern. --- tests/mv/no-copy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2