fixed : detection of non-existing file

better error message
with test
This commit is contained in:
Yann Collet
2018-12-19 18:30:57 -08:00
parent 0f2d443e10
commit 173ef9dea2
4 changed files with 35 additions and 18 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ rm -f tmpro tmpro.zst
$ECHO "test: overwrite input file (must fail)"
$ZSTD tmp -fo tmp && die "zstd overwrote the input file"
$ZSTD tmp.zst -dfo tmp.zst && die "zstd overwrote the input file"
$ECHO "test: properly detect input file does not exist"
$ZSTD nothere 2>&1 | grep "o such file"
$ECHO "test : file removal"
$ZSTD -f --rm tmp