Updated test case filter.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Thu, 09 Jun 2011 18:13:46 +0300
changeset 5695 6d81a581e6f5
parent 5694 2fc30d9b1002
child 5696 e902fa6e6960
Updated test case filter.
test/test-automation/runner.c
--- a/test/test-automation/runner.c	Thu Jun 09 18:07:50 2011 +0300
+++ b/test/test-automation/runner.c	Thu Jun 09 18:13:46 2011 +0300
@@ -269,6 +269,14 @@
 		retVal = 0;
 	}
 
+	if(only_selected_test) {
+		if(SDL_strncmp(testReference->name, selected_test_name, NAME_BUFFER_SIZE) == 0) {
+			retVal = 1;
+		} else {
+			retVal = 0;
+		}
+	}
+
 	if(only_tests_with_string) {
 		if(strstr(testReference->name, testcase_name_substring) != NULL) {
 			retVal = 1;