Fixed const correctness in the test harness

This commit is contained in:
Sam Lantinga 2012-12-22 17:24:14 -08:00
parent a7b1d9f530
commit b11f967898
2 changed files with 3 additions and 4 deletions

View file

@ -110,7 +110,7 @@ typedef struct SDLTest_TestSuiteReference {
* *
* \returns Test run result; 0 when all tests passed, 1 if any tests failed. * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
*/ */
int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], char *userRunSeed, Uint64 userExecKey, char *filter, int testIterations); int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations);
/* Ends C function definitions when using C++ */ /* Ends C function definitions when using C++ */

View file

@ -332,15 +332,14 @@ float GetClock()
* *
* \returns Test run result; 0 when all tests passed, 1 if any tests failed. * \returns Test run result; 0 when all tests passed, 1 if any tests failed.
*/ */
int int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations)
SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], char *userRunSeed, Uint64 userExecKey, char *filter, int testIterations)
{ {
int suiteCounter; int suiteCounter;
int testCounter; int testCounter;
int iterationCounter; int iterationCounter;
SDLTest_TestSuiteReference *testSuite; SDLTest_TestSuiteReference *testSuite;
SDLTest_TestCaseReference *testCase; SDLTest_TestCaseReference *testCase;
char *runSeed = NULL; const char *runSeed = NULL;
char *currentSuiteName; char *currentSuiteName;
char *currentTestName; char *currentTestName;
Uint64 execKey; Uint64 execKey;