test/testautomation_platform.c
changeset 11416 7e7d8a125d6a
parent 10782 1de6d4633ee6
     1.1 --- a/test/testautomation_platform.c	Tue Aug 29 09:02:04 2017 -0700
     1.2 +++ b/test/testautomation_platform.c	Tue Aug 29 15:52:49 2017 -0400
     1.3 @@ -112,7 +112,7 @@
     1.4     char *platform;
     1.5     char *revision;
     1.6     int ret;
     1.7 -   int len;
     1.8 +   size_t len;
     1.9  
    1.10     platform = (char *)SDL_GetPlatform();
    1.11     SDLTest_AssertPass("SDL_GetPlatform()");
    1.12 @@ -122,7 +122,7 @@
    1.13       SDLTest_AssertCheck(len > 0,
    1.14               "SDL_GetPlatform(): expected non-empty platform, was platform: '%s', len: %i",
    1.15               platform,
    1.16 -             len);
    1.17 +             (int) len);
    1.18     }
    1.19  
    1.20     ret = SDL_GetCPUCount();
    1.21 @@ -282,7 +282,7 @@
    1.22     int result;
    1.23     const char *testError = "Testing";
    1.24     char *lastError;
    1.25 -   int len;
    1.26 +   size_t len;
    1.27  
    1.28     SDL_ClearError();
    1.29     SDLTest_AssertPass("SDL_ClearError()");
    1.30 @@ -295,7 +295,7 @@
    1.31     {
    1.32       len = SDL_strlen(lastError);
    1.33       SDLTest_AssertCheck(len == 0,
    1.34 -             "SDL_GetError(): no message expected, len: %i", len);
    1.35 +             "SDL_GetError(): no message expected, len: %i", (int) len);
    1.36     }
    1.37  
    1.38     result = SDL_SetError("%s", testError);
    1.39 @@ -310,7 +310,7 @@
    1.40       SDLTest_AssertCheck(len == SDL_strlen(testError),
    1.41               "SDL_GetError(): expected message len %i, was len: %i",
    1.42               (int) SDL_strlen(testError),
    1.43 -             len);
    1.44 +             (int) len);
    1.45       SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.46               "SDL_GetError(): expected message %s, was message: %s",
    1.47               testError,
    1.48 @@ -334,7 +334,7 @@
    1.49     int result;
    1.50     const char *testError = "";
    1.51     char *lastError;
    1.52 -   int len;
    1.53 +   size_t len;
    1.54  
    1.55     result = SDL_SetError("%s", testError);
    1.56     SDLTest_AssertPass("SDL_SetError()");
    1.57 @@ -348,7 +348,7 @@
    1.58       SDLTest_AssertCheck(len == SDL_strlen(testError),
    1.59               "SDL_GetError(): expected message len %i, was len: %i",
    1.60               (int) SDL_strlen(testError),
    1.61 -             len);
    1.62 +             (int) len);
    1.63       SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.64               "SDL_GetError(): expected message '%s', was message: '%s'",
    1.65               testError,
    1.66 @@ -373,7 +373,7 @@
    1.67     const char *invalidError = NULL;
    1.68     const char *probeError = "Testing";
    1.69     char *lastError;
    1.70 -   int len;
    1.71 +   size_t len;
    1.72  
    1.73     /* Reset */
    1.74     SDL_ClearError();
    1.75 @@ -391,7 +391,7 @@
    1.76       len = SDL_strlen(lastError);
    1.77       SDLTest_AssertCheck(len == 0,
    1.78               "SDL_GetError(): expected message len 0, was len: %i",
    1.79 -             len);
    1.80 +             (int) len);
    1.81     }
    1.82  
    1.83     /* Set */
    1.84 @@ -411,7 +411,7 @@
    1.85       len = SDL_strlen(lastError);
    1.86       SDLTest_AssertCheck(len == 0,
    1.87               "SDL_GetError(): expected message len 0, was len: %i",
    1.88 -             len);
    1.89 +             (int) len);
    1.90     }
    1.91  
    1.92     /* Reset */
    1.93 @@ -431,7 +431,7 @@
    1.94       SDLTest_AssertCheck(len == SDL_strlen(probeError),
    1.95               "SDL_GetError(): expected message len %i, was len: %i",
    1.96               (int) SDL_strlen(probeError),
    1.97 -             len);
    1.98 +             (int) len);
    1.99       SDLTest_AssertCheck(SDL_strcmp(lastError, probeError) == 0,
   1.100               "SDL_GetError(): expected message '%s', was message: '%s'",
   1.101               probeError,