Updated test case filter.

This commit is contained in:
Markus Kauppila 2011-06-09 18:13:46 +03:00
parent b53f302e9c
commit c466d7043f

View file

@ -269,6 +269,14 @@ FilterTestCase(TestCaseReference *testReference)
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;