Fixed './runner --xml --show-tests'.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Mon, 04 Jul 2011 17:23:20 +0300
changeset 5741 0e08b8021648
parent 5740 d035de3f1306
child 5742 443d356b5af8
Fixed './runner --xml --show-tests'.
test/test-automation/runner.c
--- a/test/test-automation/runner.c	Sun Jul 03 20:22:30 2011 +0300
+++ b/test/test-automation/runner.c	Mon Jul 04 17:23:20 2011 +0300
@@ -684,6 +684,7 @@
 	char *extension = "dylib";
 #endif
 
+	void *loggerData = NULL;
 	if(xml_enabled) {
 		SetupXMLLogger();
 
@@ -696,11 +697,9 @@
 			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();
@@ -720,6 +719,9 @@
 		return 0;
 	}
 
+	RunStarted(argc, argv, time(0), loggerData);
+
+
 	char *currentSuiteName = NULL;
 
 	int suiteStartTime = SDL_GetTicks();