Fixed test suite start time.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Mon, 27 Jun 2011 22:39:38 +0300
changeset 5719 84d118544c1b
parent 5718 bdb85a46ff7d
child 5720 891244c73930
Fixed test suite start time.
test/test-automation/runner.c
--- a/test/test-automation/runner.c	Mon Jun 27 22:16:32 2011 +0300
+++ b/test/test-automation/runner.c	Mon Jun 27 22:39:38 2011 +0300
@@ -685,8 +685,6 @@
 
 			testFailureCount = testPassCount = 0;
 
-			//suiteStartTime = SDL_GetTicks();
-
 			suiteCounter++;
 		}
 		else if(strncmp(currentSuiteName, testItem->suiteName, NAME_BUFFER_SIZE) != 0) {
@@ -696,12 +694,10 @@
 						suiteRuntime);
 
 			currentSuiteName = testItem->suiteName;
-			SuiteStarted(currentSuiteName, 0);
+			SuiteStarted(currentSuiteName, time(0));
 
 			testFailureCount = testPassCount = 0;
 
-			//suiteStartTime = SDL_GetTicks();
-
 			suiteCounter++;
 		}
 
@@ -725,8 +721,6 @@
 	}
 
 	if(currentSuiteName) {
-		// \todo if no test are run, this will case incorrect nesting with
-		// xml output
 		SuiteEnded(testPassCount, testFailureCount, testSkipCount, time(0),
 					(SDL_GetTicks() - suiteStartTime) / 1000.0f);
 	}