mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
Use KB instead of MB to avoid cloging AppVeyor & Travis
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
029b343de4
commit
5928a19546
@ -211,9 +211,9 @@ void ZipTest::verifyDataFile(const std::string& path, Poco::UInt64 size)
|
|||||||
void ZipTest::testDecompressZip64()
|
void ZipTest::testDecompressZip64()
|
||||||
{
|
{
|
||||||
std::map<std::string, Poco::UInt64> files;
|
std::map<std::string, Poco::UInt64> files;
|
||||||
files["data1.bin"] = static_cast<Poco::UInt64>(MB)*4096+1;
|
files["data1.bin"] = static_cast<Poco::UInt64>(KB)*4096+1;
|
||||||
files["data2.bin"] = static_cast<Poco::UInt64>(MB)*16;
|
files["data2.bin"] = static_cast<Poco::UInt64>(KB)*16;
|
||||||
files["data3.bin"] = static_cast<Poco::UInt64>(MB)*4096-1;
|
files["data3.bin"] = static_cast<Poco::UInt64>(KB)*4096-1;
|
||||||
|
|
||||||
for(std::map<std::string, Poco::UInt64>::const_iterator it = files.begin(); it != files.end(); it++)
|
for(std::map<std::string, Poco::UInt64>::const_iterator it = files.begin(); it != files.end(); it++)
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,8 @@ public:
|
|||||||
|
|
||||||
void testDecompressFlat();
|
void testDecompressFlat();
|
||||||
|
|
||||||
static const Poco::UInt64 MB = (1024*1024);
|
static const Poco::UInt64 KB = 1024;
|
||||||
|
static const Poco::UInt64 MB = 1024*KB;
|
||||||
void verifyDataFile(const std::string& path, Poco::UInt64 size);
|
void verifyDataFile(const std::string& path, Poco::UInt64 size);
|
||||||
void testDecompressZip64();
|
void testDecompressZip64();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user