1
0
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:
Sandu Liviu Catalin
2023-03-23 20:19:11 +02:00
parent 8d15f4b6e9
commit 233fc103f9
2521 changed files with 257092 additions and 72789 deletions

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -51,7 +51,7 @@ public:
private:
void onDecompressError(const void* pSender, std::pair<const Poco::Zip::ZipLocalFileHeader, const std::string>& info);
int _errCnt;
};