[Box Backup-commit] COMMIT r1165 - box/chris/merge/infrastructure
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Mon Nov 13 16:18:03 GMT 2006
Author: chris
Date: 2006-11-13 16:18:03 +0000 (Mon, 13 Nov 2006)
New Revision: 1165
Modified:
box/chris/merge/infrastructure/buildenv-testmain-template.cpp
Log:
Initialise timers in all unit tests (refs #9)
Modified: box/chris/merge/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/chris/merge/infrastructure/buildenv-testmain-template.cpp 2006-11-13 16:16:54 UTC (rev 1164)
+++ box/chris/merge/infrastructure/buildenv-testmain-template.cpp 2006-11-13 16:18:03 UTC (rev 1165)
@@ -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 @@
memleakfinder_init();
#endif
+ Timers::Init();
int returncode = test(argc, argv);
+ Timers::Cleanup();
// check for memory leaks, if enabled
#ifdef BOX_MEMORY_LEAK_TESTING
More information about the Boxbackup-commit
mailing list