Updated test case filter.

This commit is contained in:
Markus Kauppila
2011-06-09 18:13:46 +03:00
parent 9bf36c262a
commit 43397ce08d

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;