From ecfbb3274e0b8c61b02f382f93d3bcbe558de5c6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 3 Aug 2008 07:08:12 +0000 Subject: Name the timers to help with debugging. --- test/common/testcommon.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test') 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()); -- cgit v1.2.3