diff options
Diffstat (limited to 'tests/100-cannot_open_files.sh')
| -rw-r--r-- | tests/100-cannot_open_files.sh | 18 |
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 |
