Fixed const correctness in the test harness
authorSam Lantinga <slouken@libsdl.org>
Sat, 22 Dec 2012 17:24:14 -0800
changeset 6768 22c37bf0afbc
parent 6767 0d46fb7f06d4
child 6769 b49778d885cd
Fixed const correctness in the test harness
include/SDL_test_harness.h
src/test/SDL_test_harness.c
--- a/include/SDL_test_harness.h	Sat Dec 22 17:24:02 2012 -0800
+++ b/include/SDL_test_harness.h	Sat Dec 22 17:24:14 2012 -0800
@@ -110,7 +110,7 @@
  *
  * \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++ */
--- a/src/test/SDL_test_harness.c	Sat Dec 22 17:24:02 2012 -0800
+++ b/src/test/SDL_test_harness.c	Sat Dec 22 17:24:14 2012 -0800
@@ -332,15 +332,14 @@
 *
 * \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;