[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 {
|
} 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 {
|
||||||
|
|
Loading…
Reference in a new issue