[Box Backup-commit] COMMIT r2215 - box/trunk/test/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sun, 3 Aug 2008 08:08:13 +0100 (BST)


Author: chris
Date: 2008-08-03 08:08:12 +0100 (Sun, 03 Aug 2008)
New Revision: 2215

Modified:
   box/trunk/test/common/testcommon.cpp
Log:
Name the timers to help with debugging.


Modified: box/trunk/test/common/testcommon.cpp
===================================================================
--- box/trunk/test/common/testcommon.cpp	2008-08-03 07:07:42 UTC (rev 2214)
+++ box/trunk/test/common/testcommon.cpp	2008-08-03 07:08:12 UTC (rev 2215)
@@ -331,10 +331,10 @@
 
 	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 @@
 	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());