mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
test(Zip): test optional consistency check
This commit is contained in:
parent
39f193c077
commit
0c34097d89
@ -318,6 +318,26 @@ void ZipTest::testDecompressConsistency()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// test decompressing all files (ignore consistency check)
|
||||
//
|
||||
{
|
||||
Poco::FileInputStream inputStream(getTestFile("data", archive));
|
||||
assertTrue (inputStream.good());
|
||||
|
||||
Decompress dec(inputStream, Poco::Path::temp());
|
||||
|
||||
// should not throw since consistency checks are ignored
|
||||
try {
|
||||
dec.decompressAllFiles(false);
|
||||
}
|
||||
catch (const ZipException &e)
|
||||
{
|
||||
assertTrue (false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// test decompressing single file
|
||||
|
Loading…
Reference in New Issue
Block a user