Updated test case filter.
authorMarkus Kauppila
Thu, 09 Jun 2011 18:13:46 +0300
changeset 56956d81a581e6f5
parent 5694 2fc30d9b1002
child 5696 e902fa6e6960
Updated test case filter.
test/test-automation/runner.c
     1.1 --- a/test/test-automation/runner.c	Thu Jun 09 18:07:50 2011 +0300
     1.2 +++ b/test/test-automation/runner.c	Thu Jun 09 18:13:46 2011 +0300
     1.3 @@ -269,6 +269,14 @@
     1.4  		retVal = 0;
     1.5  	}
     1.6  
     1.7 +	if(only_selected_test) {
     1.8 +		if(SDL_strncmp(testReference->name, selected_test_name, NAME_BUFFER_SIZE) == 0) {
     1.9 +			retVal = 1;
    1.10 +		} else {
    1.11 +			retVal = 0;
    1.12 +		}
    1.13 +	}
    1.14 +
    1.15  	if(only_tests_with_string) {
    1.16  		if(strstr(testReference->name, testcase_name_substring) != NULL) {
    1.17  			retVal = 1;