strengthened integrity tests

This commit is contained in:
Yann Collet committed 2016-07-26 01:33:20 +02:00
1 parent cf6f8530c4
commit 24a3d90bf0
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -744,7 +744,7 @@ static int FIO_decompressDstFile(dRess_t ress,
result = FIO_decompressSrcFile(ress, srcFileName);
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;
}