Fixed test suite start time.
This commit is contained in:
parent
3185853496
commit
896b25911d
1 changed files with 1 additions and 7 deletions
|
@ -685,8 +685,6 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
testFailureCount = testPassCount = 0;
|
testFailureCount = testPassCount = 0;
|
||||||
|
|
||||||
//suiteStartTime = SDL_GetTicks();
|
|
||||||
|
|
||||||
suiteCounter++;
|
suiteCounter++;
|
||||||
}
|
}
|
||||||
else if(strncmp(currentSuiteName, testItem->suiteName, NAME_BUFFER_SIZE) != 0) {
|
else if(strncmp(currentSuiteName, testItem->suiteName, NAME_BUFFER_SIZE) != 0) {
|
||||||
|
@ -696,12 +694,10 @@ main(int argc, char *argv[])
|
||||||
suiteRuntime);
|
suiteRuntime);
|
||||||
|
|
||||||
currentSuiteName = testItem->suiteName;
|
currentSuiteName = testItem->suiteName;
|
||||||
SuiteStarted(currentSuiteName, 0);
|
SuiteStarted(currentSuiteName, time(0));
|
||||||
|
|
||||||
testFailureCount = testPassCount = 0;
|
testFailureCount = testPassCount = 0;
|
||||||
|
|
||||||
//suiteStartTime = SDL_GetTicks();
|
|
||||||
|
|
||||||
suiteCounter++;
|
suiteCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -725,8 +721,6 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if(currentSuiteName) {
|
if(currentSuiteName) {
|
||||||
// \todo if no test are run, this will case incorrect nesting with
|
|
||||||
// xml output
|
|
||||||
SuiteEnded(testPassCount, testFailureCount, testSkipCount, time(0),
|
SuiteEnded(testPassCount, testFailureCount, testSkipCount, time(0),
|
||||||
(SDL_GetTicks() - suiteStartTime) / 1000.0f);
|
(SDL_GetTicks() - suiteStartTime) / 1000.0f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue