src/test/SDL_test_harness.c
changeset 6830 0cd3e2e9b2c5
parent 6772 5229a117ef97
child 6885 700f1b25f77f
     1.1 --- a/src/test/SDL_test_harness.c	Sun Jan 27 20:37:14 2013 -0800
     1.2 +++ b/src/test/SDL_test_harness.c	Thu Jan 31 08:45:30 2013 -0800
     1.3 @@ -221,7 +221,7 @@
     1.4  * \returns Test case result.
     1.5  */
     1.6  int
     1.7 -	SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, SDLTest_TestCaseReference *testCase, Uint64 execKey)
     1.8 +SDLTest_RunTest(SDLTest_TestSuiteReference *testSuite, SDLTest_TestCaseReference *testCase, Uint64 execKey)
     1.9  {
    1.10  	SDL_TimerID timer = 0;
    1.11  	int testResult = 0;
    1.12 @@ -479,6 +479,11 @@
    1.13  							testCounter,
    1.14  							currentTestName);
    1.15  				} else {
    1.16 +					// Override 'disabled' flag if we specified a test filter (i.e. force run for debugging)
    1.17 +					if (testFilter == 1 && !testCase->enabled) {
    1.18 +						SDLTest_Log("Force run of disabled test since test filter was set");
    1.19 +						testCase->enabled = 1;
    1.20 +					}
    1.21  
    1.22  					// Take time - test start
    1.23  					testStartSeconds = GetClock();