fixed unit tests (log not initialized)
This commit is contained in:
parent
e942093407
commit
f26e7b0d97
|
@ -44,6 +44,7 @@ main(int argc, char **argv)
|
||||||
arch.init();
|
arch.init();
|
||||||
|
|
||||||
CLog log;
|
CLog log;
|
||||||
|
log.setFilter(kDEBUG2);
|
||||||
|
|
||||||
string lockFile;
|
string lockFile;
|
||||||
for (int i = 0; i < argc; i++) {
|
for (int i = 0; i < argc; i++) {
|
||||||
|
@ -56,7 +57,6 @@ main(int argc, char **argv)
|
||||||
lock(lockFile);
|
lock(lockFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLOG->setFilter(kDEBUG2);
|
|
||||||
|
|
||||||
testing::InitGoogleTest(&argc, argv);
|
testing::InitGoogleTest(&argc, argv);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,11 @@ main(int argc, char **argv)
|
||||||
CArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
CArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CLOG->setFilter(kDEBUG2);
|
CArch arch;
|
||||||
|
arch.init();
|
||||||
|
|
||||||
|
CLog log;
|
||||||
|
log.setFilter(kDEBUG2);
|
||||||
|
|
||||||
testing::InitGoogleTest(&argc, argv);
|
testing::InitGoogleTest(&argc, argv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue