diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2014-03-03 14:56:59 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2014-03-03 14:56:59 +0100 |
commit | 2abb68a7c5f894b9fb826dea9887a7d26a22888f (patch) | |
tree | 5b72c822085d018974693827a21423c3dbb2d52f /test | |
parent | 11f1d89cee7d09b8ffa2350cd2ee5a1b929260bf (diff) |
+ Fixed bug in checking size of (attributes) file
Diffstat (limited to 'test')
-rw-r--r-- | test/Test.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/Test.cpp b/test/Test.cpp index 940a013..150d335 100644 --- a/test/Test.cpp +++ b/test/Test.cpp @@ -3511,8 +3511,8 @@ int main(int argc, char * argv[]) nError = TestReadFile_MasterMirror("MPQ_2013_v4_alternate-complete.MPQ", "MPQ_2013_v4_alternate-original.MPQ", true); // Open a stream, paired with remote master (takes hell lot of time!) - if(nError == ERROR_SUCCESS) - nError = TestReadFile_MasterMirror("MPQ_2013_v4_alternate-downloaded.MPQ", "http://www.zezula.net\\mpqs\\alternate.zip", false); +// if(nError == ERROR_SUCCESS) +// nError = TestReadFile_MasterMirror("MPQ_2013_v4_alternate-downloaded.MPQ", "http://www.zezula.net\\mpqs\\alternate.zip", false); // Search in listfile if(nError == ERROR_SUCCESS) @@ -3566,10 +3566,14 @@ int main(int argc, char * argv[]) if(nError == ERROR_SUCCESS) nError = TestOpenArchive("MPQ_2002_v1_ProtectedMap_Spazzler.w3x"); - // Open an Warcraft III map locked by the Spazzler protector + // Open an Warcraft III map locked by the BOBA protector if(nError == ERROR_SUCCESS) nError = TestOpenArchive("MPQ_2002_v1_ProtectedMap_BOBA.w3m"); + // Open an Warcraft III map whose "(attributes)" file has (BlockTableSize-1) entries + if(nError == ERROR_SUCCESS) + nError = TestOpenArchive("MPQ_2014_v1_AttributesOneEntryLess.w3x"); + // Open a MPQ archive v 3.0 if(nError == ERROR_SUCCESS) nError = TestOpenArchive("MPQ_2010_v3_expansion-locale-frFR.MPQ"); @@ -3705,7 +3709,7 @@ int main(int argc, char * argv[]) // Create a MPQ file, add a stereo-WAVE file with various compressions if(nError == ERROR_SUCCESS) nError = TestCreateArchive_WaveCompressionsTest("StormLibTest_AddWaveStereoTest.mpq", "AddFile-Stereo.wav"); -/* + // Check if the listfile is always created at the end of the file table in the archive if(nError == ERROR_SUCCESS) nError = TestCreateArchive_ListFilePos("StormLibTest_ListFilePos.mpq"); @@ -3713,6 +3717,6 @@ int main(int argc, char * argv[]) // Open a MPQ (add custom user data to it) if(nError == ERROR_SUCCESS) nError = TestCreateArchive_BigArchive("StormLibTest_BigArchive_v4.mpq"); -*/ + return nError; } |