[test] Call ZLFile::initCache prior to running the tests
Otherwise test would crash
This commit is contained in:
parent
94af49b211
commit
faf8581445
1 changed files with 2 additions and 0 deletions
|
@ -275,6 +275,7 @@ int main(int argc, char **argv)
|
|||
} else {
|
||||
ret = RET_OK;
|
||||
ZLQtFSManager::createInstance();
|
||||
ZLFile::initCache();
|
||||
if (argc > 1) {
|
||||
for (int i=1; i<argc; 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;
|
||||
}
|
||||
}
|
||||
ZLFile::flushCache();
|
||||
ZLFSManager::deleteInstance();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue