Fixed const correctness in the test harness
This commit is contained in:
parent
a7b1d9f530
commit
b11f967898
2 changed files with 3 additions and 4 deletions
|
@ -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++ */
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue