Fixed const correctness in the test harness
authorSam Lantinga <slouken@libsdl.org>
Sat, 22 Dec 2012 17:24:14 -0800
changeset 676822c37bf0afbc
parent 6767 0d46fb7f06d4
child 6769 b49778d885cd
Fixed const correctness in the test harness
include/SDL_test_harness.h
src/test/SDL_test_harness.c
     1.1 --- a/include/SDL_test_harness.h	Sat Dec 22 17:24:02 2012 -0800
     1.2 +++ b/include/SDL_test_harness.h	Sat Dec 22 17:24:14 2012 -0800
     1.3 @@ -110,7 +110,7 @@
     1.4   *
     1.5   * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
     1.6   */
     1.7 -int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], char *userRunSeed, Uint64 userExecKey, char *filter, int testIterations);
     1.8 +int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations);
     1.9           
    1.10  
    1.11  /* Ends C function definitions when using C++ */
     2.1 --- a/src/test/SDL_test_harness.c	Sat Dec 22 17:24:02 2012 -0800
     2.2 +++ b/src/test/SDL_test_harness.c	Sat Dec 22 17:24:14 2012 -0800
     2.3 @@ -332,15 +332,14 @@
     2.4  *
     2.5  * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
     2.6  */
     2.7 -int
     2.8 -	SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], char *userRunSeed, Uint64 userExecKey, char *filter, int testIterations)
     2.9 +int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations)
    2.10  {
    2.11  	int suiteCounter;
    2.12  	int testCounter;
    2.13  	int iterationCounter;
    2.14  	SDLTest_TestSuiteReference *testSuite;
    2.15  	SDLTest_TestCaseReference *testCase;
    2.16 -	char *runSeed = NULL;
    2.17 +	const char *runSeed = NULL;
    2.18  	char *currentSuiteName;
    2.19  	char *currentTestName;
    2.20  	Uint64 execKey;