aboutsummaryrefslogtreecommitdiff
path: root/tests/100-cannot_open_files.sh
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2022-06-18 08:50:45 +0200
committerJan Sucan <jan@jansucan.com>2022-06-18 08:50:54 +0200
commit948a65cf39c8ce31c5adc0f24979e0cb55bc33c3 (patch)
treeae923f4594fef0abb777f63291d62530c345b229 /tests/100-cannot_open_files.sh
parente1d10bea5d9fc94ba800ade1de430c7f3c0ccacd (diff)
Refactor the command line interface
Select operation by its name instead of by number of the arguments.
Diffstat (limited to 'tests/100-cannot_open_files.sh')
-rw-r--r--tests/100-cannot_open_files.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/100-cannot_open_files.sh b/tests/100-cannot_open_files.sh
index 4b49acd..07eb574 100644
--- a/tests/100-cannot_open_files.sh
+++ b/tests/100-cannot_open_files.sh
@@ -6,18 +6,18 @@ PROGRAM_EXEC="$1"
rm -f input ref out
touch ref out
-assert_error "cannot open input file" $PROGRAM_EXEC input ref out
+assert "" "cannot open input file" 1 $PROGRAM_EXEC backup input ref out
rm -f input ref out
touch input out
-assert_error "cannot open reference file" $PROGRAM_EXEC input ref out
+assert "" "cannot open reference file" 1 $PROGRAM_EXEC backup input ref out
rm -f input ref out
rmdir outdir 2>/dev/null
touch input ref
mkdir outdir
chmod -w outdir
-assert_error "cannot open output file" $PROGRAM_EXEC input ref outdir/out
+assert "" "cannot open output file" 1 $PROGRAM_EXEC backup input ref outdir/out
rm -f input ref out
rmdir outdir