From 948a65cf39c8ce31c5adc0f24979e0cb55bc33c3 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 18 Jun 2022 08:50:45 +0200 Subject: Refactor the command line interface Select operation by its name instead of by number of the arguments. --- tests/100-cannot_open_files.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/100-cannot_open_files.sh') 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 -- cgit v1.2.3