test/testautomation_platform.c
changeset 10782 1de6d4633ee6
parent 9260 039714172dc3
child 11416 7e7d8a125d6a
     1.1 --- a/test/testautomation_platform.c	Sat Jan 07 19:55:29 2017 -0500
     1.2 +++ b/test/testautomation_platform.c	Sat Jan 07 22:24:45 2017 -0500
     1.3 @@ -309,7 +309,7 @@
     1.4       len = SDL_strlen(lastError);
     1.5       SDLTest_AssertCheck(len == SDL_strlen(testError),
     1.6               "SDL_GetError(): expected message len %i, was len: %i",
     1.7 -             SDL_strlen(testError),
     1.8 +             (int) SDL_strlen(testError),
     1.9               len);
    1.10       SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.11               "SDL_GetError(): expected message %s, was message: %s",
    1.12 @@ -347,7 +347,7 @@
    1.13       len = SDL_strlen(lastError);
    1.14       SDLTest_AssertCheck(len == SDL_strlen(testError),
    1.15               "SDL_GetError(): expected message len %i, was len: %i",
    1.16 -             SDL_strlen(testError),
    1.17 +             (int) SDL_strlen(testError),
    1.18               len);
    1.19       SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.20               "SDL_GetError(): expected message '%s', was message: '%s'",
    1.21 @@ -380,7 +380,7 @@
    1.22     SDLTest_AssertPass("SDL_ClearError()");
    1.23  
    1.24     /* Check for no-op */
    1.25 -   result = SDL_SetError(invalidError);
    1.26 +   result = SDL_SetError("%s", invalidError);
    1.27     SDLTest_AssertPass("SDL_SetError()");
    1.28     SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
    1.29     lastError = (char *)SDL_GetError();
    1.30 @@ -395,12 +395,12 @@
    1.31     }
    1.32  
    1.33     /* Set */
    1.34 -   result = SDL_SetError(probeError);
    1.35 +   result = SDL_SetError("%s", probeError);
    1.36     SDLTest_AssertPass("SDL_SetError('%s')", probeError);
    1.37     SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
    1.38  
    1.39     /* Check for no-op */
    1.40 -   result = SDL_SetError(invalidError);
    1.41 +   result = SDL_SetError("%s", invalidError);
    1.42     SDLTest_AssertPass("SDL_SetError(NULL)");
    1.43     SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
    1.44     lastError = (char *)SDL_GetError();
    1.45 @@ -419,7 +419,7 @@
    1.46     SDLTest_AssertPass("SDL_ClearError()");
    1.47  
    1.48     /* Set and check */
    1.49 -   result = SDL_SetError(probeError);
    1.50 +   result = SDL_SetError("%s", probeError);
    1.51     SDLTest_AssertPass("SDL_SetError()");
    1.52     SDLTest_AssertCheck(result == -1, "SDL_SetError: expected -1, got: %i", result);
    1.53     lastError = (char *)SDL_GetError();
    1.54 @@ -430,7 +430,7 @@
    1.55       len = SDL_strlen(lastError);
    1.56       SDLTest_AssertCheck(len == SDL_strlen(probeError),
    1.57               "SDL_GetError(): expected message len %i, was len: %i",
    1.58 -             SDL_strlen(probeError),
    1.59 +             (int) SDL_strlen(probeError),
    1.60               len);
    1.61       SDLTest_AssertCheck(SDL_strcmp(lastError, probeError) == 0,
    1.62               "SDL_GetError(): expected message '%s', was message: '%s'",