diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 16:18:03 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 16:18:03 +0000 |
commit | 02f35d357c9afba3ed895115f1d0b4fff01ad41f (patch) | |
tree | dcc477c529c350e1d50f88ce0d38148f50e9ae53 | |
parent | 8e29d16a56228d200b6d39b37506e27a037f0f6f (diff) |
Initialise timers in all unit tests (refs #9)
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 856c1bc4..b6d20204 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -30,6 +30,8 @@ #include <syslog.h> #endif +#include "Timer.h" + #include "MemLeakFindOn.h" int test(int argc, const char *argv[]); @@ -118,7 +120,9 @@ int main(int argc, const char *argv[]) memleakfinder_init(); #endif + Timers::Init(); int returncode = test(argc, argv); + Timers::Cleanup(); // check for memory leaks, if enabled #ifdef BOX_MEMORY_LEAK_TESTING |