test/testautomation_platform.c
changeset 6778 d57d273d74f9
parent 6769 b49778d885cd
child 7191 75360622e65f
     1.1 --- a/test/testautomation_platform.c	Fri Dec 28 20:01:41 2012 -0500
     1.2 +++ b/test/testautomation_platform.c	Sun Dec 30 09:58:03 2012 -0800
     1.3 @@ -122,7 +122,7 @@
     1.4     SDLTest_AssertPass("SDL_GetPlatform()");
     1.5     SDLTest_AssertCheck(platform != NULL, "SDL_GetPlatform() != NULL");
     1.6     if (platform != NULL) {
     1.7 -     len = strlen(platform);
     1.8 +     len = SDL_strlen(platform);
     1.9       SDLTest_AssertCheck(len > 0,
    1.10               "SDL_GetPlatform(): expected non-empty platform, was platform: '%s', len: %i",
    1.11               platform,
    1.12 @@ -292,7 +292,7 @@
    1.13               "SDL_GetError() != NULL");
    1.14     if (lastError != NULL)
    1.15     {
    1.16 -     len = strlen(lastError);
    1.17 +     len = SDL_strlen(lastError);
    1.18       SDLTest_AssertCheck(len == 0,
    1.19               "SDL_GetError(): no message expected, len: %i", len);
    1.20     }
    1.21 @@ -304,12 +304,12 @@
    1.22               "SDL_GetError() != NULL");
    1.23     if (lastError != NULL)
    1.24     {
    1.25 -     len = strlen(lastError);
    1.26 -     SDLTest_AssertCheck(len == strlen(testError),
    1.27 +     len = SDL_strlen(lastError);
    1.28 +     SDLTest_AssertCheck(len == SDL_strlen(testError),
    1.29               "SDL_GetError(): expected message len %i, was len: %i",
    1.30 -             strlen(testError),
    1.31 +             SDL_strlen(testError),
    1.32               len);
    1.33 -     SDLTest_AssertCheck(strcmp(lastError, testError) == 0,
    1.34 +     SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.35               "SDL_GetError(): expected message %s, was message: %s",
    1.36               testError,
    1.37               lastError);
    1.38 @@ -340,12 +340,12 @@
    1.39               "SDL_GetError() != NULL");
    1.40     if (lastError != NULL)
    1.41     {
    1.42 -     len = strlen(lastError);
    1.43 -     SDLTest_AssertCheck(len == strlen(testError),
    1.44 +     len = SDL_strlen(lastError);
    1.45 +     SDLTest_AssertCheck(len == SDL_strlen(testError),
    1.46               "SDL_GetError(): expected message len %i, was len: %i",
    1.47 -             strlen(testError),
    1.48 +             SDL_strlen(testError),
    1.49               len);
    1.50 -     SDLTest_AssertCheck(strcmp(lastError, testError) == 0,
    1.51 +     SDLTest_AssertCheck(SDL_strcmp(lastError, testError) == 0,
    1.52               "SDL_GetError(): expected message '%s', was message: '%s'",
    1.53               testError,
    1.54               lastError);
    1.55 @@ -382,12 +382,12 @@
    1.56               "SDL_GetError() != NULL");
    1.57     if (lastError != NULL)
    1.58     {
    1.59 -     len = strlen(lastError);
    1.60 +     len = SDL_strlen(lastError);
    1.61       SDLTest_AssertCheck(len == 0,
    1.62               "SDL_GetError(): expected message len 0, was len: %i",
    1.63               0,
    1.64               len);
    1.65 -     SDLTest_AssertCheck(strcmp(lastError, "") == 0,
    1.66 +     SDLTest_AssertCheck(SDL_strcmp(lastError, "") == 0,
    1.67               "SDL_GetError(): expected message '', was message: '%s'",
    1.68               lastError);
    1.69     }
    1.70 @@ -404,12 +404,12 @@
    1.71               "SDL_GetError() != NULL");
    1.72     if (lastError != NULL)
    1.73     {
    1.74 -     len = strlen(lastError);
    1.75 -     SDLTest_AssertCheck(len == strlen(probeError),
    1.76 +     len = SDL_strlen(lastError);
    1.77 +     SDLTest_AssertCheck(len == SDL_strlen(probeError),
    1.78               "SDL_GetError(): expected message len %i, was len: %i",
    1.79 -             strlen(probeError),
    1.80 +             SDL_strlen(probeError),
    1.81               len);
    1.82 -     SDLTest_AssertCheck(strcmp(lastError, probeError) == 0,
    1.83 +     SDLTest_AssertCheck(SDL_strcmp(lastError, probeError) == 0,
    1.84               "SDL_GetError(): expected message '%s', was message: '%s'",
    1.85               probeError,
    1.86               lastError);