fixed unit tests (log not initialized)

This commit is contained in:
Nick Bolton 2012-07-10 13:55:05 +00:00
parent e942093407
commit f26e7b0d97
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);