From 217a6b905d46ee355373b2de60f0f36be828202c Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 28 Dec 2024 12:17:37 +0100 Subject: Rename reference file to base file for backup --- tests/100-cannot_open_files.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 4e7c45f..64d2a87 100644 --- a/tests/100-cannot_open_files.sh +++ b/tests/100-cannot_open_files.sh @@ -4,22 +4,22 @@ source ./assert.sh PROGRAM_EXEC="$1" -rm -f input ref out -touch ref out -assert "" "cannot get size of input file" 1 $PROGRAM_EXEC backup input ref out +rm -f input base out +touch base out +assert "" "cannot get size of input file" 1 $PROGRAM_EXEC backup input base out -rm -f input ref out +rm -f input base out touch input out -assert "" "cannot get size of reference file" 1 $PROGRAM_EXEC backup input ref out +assert "" "cannot get size of base file" 1 $PROGRAM_EXEC backup input base out -rm -f input ref out +rm -f input base out rmdir outdir 2>/dev/null -touch input ref +touch input base mkdir outdir chmod -w outdir -assert "" "cannot open output file" 1 $PROGRAM_EXEC backup input ref outdir/out +assert "" "cannot open output file" 1 $PROGRAM_EXEC backup input base outdir/out -rm -f input ref out +rm -f input base out rmdir outdir exit 0 -- cgit v1.2.3