summaryrefslogtreecommitdiff
path: root/test/common/testcommon.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-08-03 07:08:12 +0000
committerChris Wilson <chris+github@qwirx.com>2008-08-03 07:08:12 +0000
commitecfbb3274e0b8c61b02f382f93d3bcbe558de5c6 (patch)
treec620c26d9d033df17fffd5fec08cb359f3cebdf1 /test/common/testcommon.cpp
parentc6a78f79879a8a83f4a2557b2ff404a862cf88c8 (diff)
Name the timers to help with debugging.
Diffstat (limited to 'test/common/testcommon.cpp')
-rw-r--r--test/common/testcommon.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index 46d36c73..9d24a882 100644
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -331,10 +331,10 @@ int test(int argc, const char *argv[])
Timers::Init();
- Timer t0(0); // should never expire
- Timer t1(1);
- Timer t2(2);
- Timer t3(3);
+ Timer t0(0, "t0"); // should never expire
+ Timer t1(1, "t1");
+ Timer t2(2, "t2");
+ Timer t3(3, "t3");
TEST_THAT(!t0.HasExpired());
TEST_THAT(!t1.HasExpired());
@@ -353,8 +353,8 @@ int test(int argc, const char *argv[])
TEST_THAT(t2.HasExpired());
TEST_THAT(!t3.HasExpired());
- t1 = Timer(1);
- t2 = Timer(2);
+ t1 = Timer(1, "t1a");
+ t2 = Timer(2, "t2a");
TEST_THAT(!t0.HasExpired());
TEST_THAT(!t1.HasExpired());
TEST_THAT(!t2.HasExpired());