mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-10-20 01:47:21 +02:00
Update POCO library.
This commit is contained in:
@@ -102,19 +102,19 @@ void PartialStreamTest::testAutoDetect()
|
||||
{
|
||||
std::string header = ZipUtil::fakeZLibInitString(ZipCommon::CL_NORMAL);
|
||||
std::string crc("\01\02\03\04");
|
||||
const char data[] =
|
||||
const char data[] =
|
||||
{
|
||||
'\x01', '\x02', '\x03', '\x04',
|
||||
'\x01', '\x02', '\x03', '\x04',
|
||||
'\x05', '\x06', '\x07', '\x08', // fake data
|
||||
'\x50', '\x4b', '\x07', '\x08', // data signature in compressed data
|
||||
'\x01', '\x02', '\x03', '\x04',
|
||||
'\x50',
|
||||
'\x50', '\x4b', '\x07', '\x08', // real data signature
|
||||
'\x50',
|
||||
'\x50', '\x4b', '\x07', '\x08', // real data signature
|
||||
'\x00', '\x00', '\x00', '\x00', // CRC (ignored)
|
||||
'\x11', '\x00', '\x00', '\x00', // compressed size
|
||||
'\x00', '\x00', '\x00', '\x00' // uncompressed size (ignored)
|
||||
};
|
||||
|
||||
|
||||
Poco::MemoryInputStream istr(data, sizeof(data));
|
||||
AutoDetectInputStream adi(istr, header, crc, false, 0);
|
||||
std::string result;
|
||||
|
@@ -24,7 +24,7 @@ int wmain(int argc, wchar_t* argv[])
|
||||
std::wcstombs(buffer, argv[i], sizeof(buffer));
|
||||
args.push_back(std::string(buffer));
|
||||
}
|
||||
CppUnit::TestRunner runner;
|
||||
CppUnit::TestRunner runner;
|
||||
runner.addTest("ZipTestSuite", ZipTestSuite::suite());
|
||||
return runner.run(args) ? 0 : 1;
|
||||
}
|
||||
|
2
vendor/POCO/Zip/testsuite/src/ZipTest.h
vendored
2
vendor/POCO/Zip/testsuite/src/ZipTest.h
vendored
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
private:
|
||||
void onDecompressError(const void* pSender, std::pair<const Poco::Zip::ZipLocalFileHeader, const std::string>& info);
|
||||
|
||||
|
||||
int _errCnt;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user