From c1e292fcf8decd6c08f55dbc18a02f69d8d26890 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 13 Nov 2016 23:09:42 -0800 Subject: [PATCH] Fixed build error with missing function prototype in the SDL_test_harness.h header --- include/SDL_test_harness.h | 11 +++++++++++ src/test/SDL_test_harness.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/SDL_test_harness.h b/include/SDL_test_harness.h index 74c0950cda619..f3ee5b4f0ee8e 100644 --- a/include/SDL_test_harness.h +++ b/include/SDL_test_harness.h @@ -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. * diff --git a/src/test/SDL_test_harness.c b/src/test/SDL_test_harness.c index 74815822822e7..e70a5d336ca60 100644 --- a/src/test/SDL_test_harness.c +++ b/src/test/SDL_test_harness.c @@ -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;