Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed './runner --xml --show-tests'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Jul 4, 2011
1 parent 0eff318 commit 97bff35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test-automation/runner.c
Expand Up @@ -684,6 +684,7 @@ main(int argc, char *argv[])
char *extension = "dylib";
#endif

void *loggerData = NULL;
if(xml_enabled) {
SetupXMLLogger();

Expand All @@ -696,11 +697,9 @@ main(int argc, char *argv[])
sheet = xsl_stylesheet_name;
}

RunStarted(argc, argv, time(0), sheet);
loggerData = sheet;
} else {
SetupPlainLogger();

RunStarted(argc, argv, time(0), NULL);
}

const Uint32 startTicks = SDL_GetTicks();
Expand All @@ -720,6 +719,9 @@ main(int argc, char *argv[])
return 0;
}

RunStarted(argc, argv, time(0), loggerData);


char *currentSuiteName = NULL;

int suiteStartTime = SDL_GetTicks();
Expand Down

0 comments on commit 97bff35

Please sign in to comment.