strengthened integrity tests
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
v0.8.0
|
v0.8.0
|
||||||
Fixed : premature end of frame when zero-sized raw block, reported by Eric Biggers
|
New : updated compresson format
|
||||||
Fixed : legacy mode with ZSTD_HEAPMODE=0, by Christopher Bergqvist
|
Fixed : legacy mode with ZSTD_HEAPMODE=0, by Christopher Bergqvist
|
||||||
|
Fixed : premature end of frame when zero-sized raw block, reported by Eric Biggers
|
||||||
Fixed : checksum correctly checked in single-pass mode
|
Fixed : checksum correctly checked in single-pass mode
|
||||||
|
Fixed : combined --test amd --rm, reported by Andreas M. Nilsson
|
||||||
Modified : minor compression level adaptations
|
Modified : minor compression level adaptations
|
||||||
Updated : compression format specification to v0.2.0
|
Updated : compression format specification to v0.2.0
|
||||||
changed : zstd.h moved to /lib directory
|
changed : zstd.h moved to /lib directory
|
||||||
|
|||||||
+1
-1
@@ -744,7 +744,7 @@ static int FIO_decompressDstFile(dRess_t ress,
|
|||||||
result = FIO_decompressSrcFile(ress, srcFileName);
|
result = FIO_decompressSrcFile(ress, srcFileName);
|
||||||
|
|
||||||
if (fclose(ress.dstFile)) EXM_THROW(38, "Write error : cannot properly close %s", dstFileName);
|
if (fclose(ress.dstFile)) EXM_THROW(38, "Write error : cannot properly close %s", dstFileName);
|
||||||
if (result != 0) if (remove(dstFileName)) EXM_THROW(39, "remove %s error : %s", dstFileName, strerror(errno));
|
if (result != 0) if (remove(dstFileName)) result=1; /* don't do anything if remove fails */
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -204,8 +204,11 @@ $ZSTD -t tmp1.zst
|
|||||||
$ZSTD --test tmp1.zst
|
$ZSTD --test tmp1.zst
|
||||||
$ECHO "test multiple files (*.zst) "
|
$ECHO "test multiple files (*.zst) "
|
||||||
$ZSTD -t *.zst
|
$ZSTD -t *.zst
|
||||||
$ECHO "test good and bad files (*) "
|
$ECHO "test bad files (*) "
|
||||||
$ZSTD -t * && die "bad files not detected !"
|
$ZSTD -t * && die "bad files not detected !"
|
||||||
|
$ZSTD -t tmp1 && die "bad file not detected !"
|
||||||
|
cp tmp1 tmp2.zst
|
||||||
|
$ZSTD -t tmp2.zst && die "bad file not detected !"
|
||||||
$ECHO "test --rm and --test combined "
|
$ECHO "test --rm and --test combined "
|
||||||
$ZSTD -t --rm tmp1.zst
|
$ZSTD -t --rm tmp1.zst
|
||||||
ls -ls tmp1.zst # check file is still present
|
ls -ls tmp1.zst # check file is still present
|
||||||
|
|||||||
Reference in New Issue
Block a user