[test] Call ZLFile::initCache prior to running the tests

Otherwise test would crash
This commit is contained in:
Slava Monich 2015-09-13 13:18:37 +03:00
parent 94af49b211
commit faf8581445

View file

@ -275,6 +275,7 @@ int main(int argc, char **argv)
} else { } else {
ret = RET_OK; ret = RET_OK;
ZLQtFSManager::createInstance(); ZLQtFSManager::createInstance();
ZLFile::initCache();
if (argc > 1) { if (argc > 1) {
for (int i=1; i<argc; i++) { for (int i=1; i<argc; i++) {
const int ret2 = process(argv[i]); const int ret2 = process(argv[i]);
@ -294,6 +295,7 @@ int main(int argc, char **argv)
if (ret2 != RET_OK && ret == RET_OK) ret = ret2; if (ret2 != RET_OK && ret == RET_OK) ret = ret2;
} }
} }
ZLFile::flushCache();
ZLFSManager::deleteInstance(); ZLFSManager::deleteInstance();
} }
} else { } else {