From cbcf04f786c96160f744691fb946c4ccf0b2d32b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 22 Dec 2012 17:24:14 -0800 Subject: [PATCH] Fixed const correctness in the test harness --- include/SDL_test_harness.h | 2 +- src/test/SDL_test_harness.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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;