aboutsummaryrefslogtreecommitdiff
path: root/tests/100-cannot_open_files.sh
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-12-28 12:17:37 +0100
committerJán Sučan <jan@jansucan.com>2024-12-28 12:47:08 +0100
commit217a6b905d46ee355373b2de60f0f36be828202c (patch)
tree62d5c4c3ab03068672735b73ed947a85bdeb5768 /tests/100-cannot_open_files.sh
parent60a76d6ecbd76938cb73120f8c634223a02d503f (diff)
Rename reference file to base file for backup
Diffstat (limited to 'tests/100-cannot_open_files.sh')
-rw-r--r--tests/100-cannot_open_files.sh18
1 files changed, 9 insertions, 9 deletions
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