Fixed build error with missing function prototype in the SDL_test_harness.h header
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Nov 2016 23:09:42 -0800
changeset 1061152ba31230c02
parent 10610 3f25b3dd334e
child 10612 6b2307dbec54
Fixed build error with missing function prototype in the SDL_test_harness.h header
include/SDL_test_harness.h
src/test/SDL_test_harness.c
     1.1 --- a/include/SDL_test_harness.h	Sun Nov 13 23:04:47 2016 -0800
     1.2 +++ b/include/SDL_test_harness.h	Sun Nov 13 23:09:42 2016 -0800
     1.3 @@ -99,6 +99,17 @@
     1.4  
     1.5  
     1.6  /**
     1.7 + * \brief Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
     1.8 + *
     1.9 + * Note: The returned string needs to be deallocated by the caller.
    1.10 + *
    1.11 + * \param length The length of the seed string to generate
    1.12 + *
    1.13 + * \returns The generated seed string
    1.14 + */
    1.15 +char *SDLTest_GenerateRunSeed(const int length);
    1.16 +
    1.17 +/**
    1.18   * \brief Execute a test suite using the given run seed and execution key.
    1.19   *
    1.20   * \param testSuites Suites containing the test case.
     2.1 --- a/src/test/SDL_test_harness.c	Sun Nov 13 23:04:47 2016 -0800
     2.2 +++ b/src/test/SDL_test_harness.c	Sun Nov 13 23:09:42 2016 -0800
     2.3 @@ -50,7 +50,7 @@
     2.4  *
     2.5  * \returns The generated seed string
     2.6  */
     2.7 -static char *
     2.8 +char *
     2.9  SDLTest_GenerateRunSeed(const int length)
    2.10  {
    2.11      char *seed = NULL;