diff --git a/include/SDL_test_harness.h b/include/SDL_test_harness.h index ef82afc25..1c5967907 100644 --- a/include/SDL_test_harness.h +++ b/include/SDL_test_harness.h @@ -110,7 +110,7 @@ typedef struct SDLTest_TestSuiteReference { * * \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++ */ diff --git a/src/test/SDL_test_harness.c b/src/test/SDL_test_harness.c index 023340626..5dd17d9a8 100644 --- a/src/test/SDL_test_harness.c +++ b/src/test/SDL_test_harness.c @@ -332,15 +332,14 @@ float GetClock() * * \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) { int suiteCounter; int testCounter; int iterationCounter; SDLTest_TestSuiteReference *testSuite; SDLTest_TestCaseReference *testCase; - char *runSeed = NULL; + const char *runSeed = NULL; char *currentSuiteName; char *currentTestName; Uint64 execKey;