aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-08-26 10:17:05 +0200
committerLadislav Zezula <zezula@volny.cz>2020-08-26 10:17:05 +0200
commitf438d59c5c10c9d2308ac1bfaff8da54bdbb8c4f (patch)
treea8e531af5191cbd428a538805392b62002de8124 /test
parentc20d117942a324b97ee5e326f6630ecf0f6d5a23 (diff)
* Removed sprintf as source of incompatibilities
* Fixed bug
Diffstat (limited to 'test')
-rw-r--r--test/StormTest.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 9766fd0..6732ed0 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -1559,8 +1559,8 @@ static TFileData * LoadMpqFile(TLogHelper * pLogger, HANDLE hMpq, LPCSTR szFileN
pLogger->PrintProgress("Loading file %s ...", GetShortPlainName(szFileName));
#if defined(_MSC_VER) && defined(_DEBUG)
- if(!_stricmp(szFileName, "File00000733.wav"))
- __debugbreak();
+// if(!_stricmp(szFileName, "File00000733.wav"))
+// __debugbreak();
#endif
// Make sure that we open the proper locale file
@@ -4409,6 +4409,9 @@ int _tmain(int argc, TCHAR * argv[])
printf("==== Test Suite for StormLib version %s ====\n", STORMLIB_VERSION_STRING);
nError = InitializeMpqDirectory(argv, argc);
+ HANDLE hMpq = NULL;
+ SFileOpenArchive(_T("e:\\Multimedia\\MPQs\\2010 - Starcraft II\\25092\\Updates\\enGB\\s2-update-enGB-24540.MPQ"), 0, 0, &hMpq);
+
// Not a test, but rather a tool for creating links to duplicated files
// if(nError == ERROR_SUCCESS)
// nError = FindFilePairs(ForEachFile_CreateArchiveLink, "2004 - WoW\\06080", "2004 - WoW\\06299");
@@ -4656,8 +4659,8 @@ int _tmain(int argc, TCHAR * argv[])
*/
// Test on an archive that has two fake headers before the real one
if (nError == ERROR_SUCCESS)
- nError = TestOpenArchive_Corrupt(_T("MPQ_2020_v4_FakeMpqHeaders.SC2Mod"));
-/*
+ nError = TestOpenArchive(_T("MPQ_2020_v4_FakeMpqHeaders.SC2Mod"));
+
// Open a patched archive
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive_Patched(PatchList_StarCraft, "music\\terran1.wav", 0);
@@ -4852,7 +4855,7 @@ int _tmain(int argc, TCHAR * argv[])
// Test replacing a file with zero size file
if(nError == ERROR_SUCCESS)
nError = TestModifyArchive_ReplaceFile(_T("MPQ_2014_v4_Base.StormReplay"), _T("AddFile-replay.message.events"));
-*/
+
#ifdef _MSC_VER
_CrtDumpMemoryLeaks();
#endif // _MSC_VER