Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Updated test case filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkauppila committed Jun 9, 2011
1 parent 6dd4229 commit 71f6007
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test-automation/runner.c
Expand Up @@ -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;
Expand Down

0 comments on commit 71f6007

Please sign in to comment.