Skip to content

Commit

Permalink
Fixed build error with missing function prototype in the SDL_test_har…
Browse files Browse the repository at this point in the history
…ness.h header
  • Loading branch information
slouken committed Nov 14, 2016
1 parent c2837ef commit c1e292f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions include/SDL_test_harness.h
Expand Up @@ -98,6 +98,17 @@ typedef struct SDLTest_TestSuiteReference {
} SDLTest_TestSuiteReference;


/**
* \brief Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
*
* Note: The returned string needs to be deallocated by the caller.
*
* \param length The length of the seed string to generate
*
* \returns The generated seed string
*/
char *SDLTest_GenerateRunSeed(const int length);

/**
* \brief Execute a test suite using the given run seed and execution key.
*
Expand Down
2 changes: 1 addition & 1 deletion src/test/SDL_test_harness.c
Expand Up @@ -50,7 +50,7 @@ static Uint32 SDLTest_TestCaseTimeout = 3600;
*
* \returns The generated seed string
*/
static char *
char *
SDLTest_GenerateRunSeed(const int length)
{
char *seed = NULL;
Expand Down

0 comments on commit c1e292f

Please sign in to comment.