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();
|
||||
|
||||
CLog log;
|
||||
log.setFilter(kDEBUG2);
|
||||
|
||||
string lockFile;
|
||||
for (int i = 0; i < argc; i++) {
|
||||
|
@ -56,7 +57,6 @@ main(int argc, char **argv)
|
|||
lock(lockFile);
|
||||
}
|
||||
|
||||
CLOG->setFilter(kDEBUG2);
|
||||
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
|
|
|
@ -31,7 +31,11 @@ main(int argc, char **argv)
|
|||
CArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
||||
#endif
|
||||
|
||||
CLOG->setFilter(kDEBUG2);
|
||||
CArch arch;
|
||||
arch.init();
|
||||
|
||||
CLog log;
|
||||
log.setFilter(kDEBUG2);
|
||||
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
|
|
Loading…
Reference in New Issue