test/testautomation_rwops.c
changeset 9254 6c469ea796e4
parent 9219 c65108ddbeb0
child 9260 039714172dc3
     1.1 --- a/test/testautomation_rwops.c	Sun Nov 30 22:17:12 2014 +0100
     1.2 +++ b/test/testautomation_rwops.c	Sun Nov 30 20:55:27 2014 -0800
     1.3 @@ -105,7 +105,7 @@
     1.4     /* Set to start. */
     1.5     i = SDL_RWseek(rw, 0, RW_SEEK_SET );
     1.6     SDLTest_AssertPass("Call to SDL_RWseek succeeded");
     1.7 -   SDLTest_AssertCheck(i == (Sint64)0, "Verify seek to 0 with SDL_RWseek (RW_SEEK_SET), expected 0, got %i", i);
     1.8 +   SDLTest_AssertCheck(i == (Sint64)0, "Verify seek to 0 with SDL_RWseek (RW_SEEK_SET), expected 0, got %lli", i);
     1.9  
    1.10     /* Test write. */
    1.11     s = SDL_RWwrite(rw, RWopsHelloWorldTestString, sizeof(RWopsHelloWorldTestString)-1, 1);
    1.12 @@ -120,12 +120,12 @@
    1.13     /* Test seek to random position */
    1.14     i = SDL_RWseek( rw, seekPos, RW_SEEK_SET );
    1.15     SDLTest_AssertPass("Call to SDL_RWseek succeeded");
    1.16 -   SDLTest_AssertCheck(i == (Sint64)seekPos, "Verify seek to %i with SDL_RWseek (RW_SEEK_SET), expected %i, got %i", seekPos, seekPos, i);
    1.17 +   SDLTest_AssertCheck(i == (Sint64)seekPos, "Verify seek to %i with SDL_RWseek (RW_SEEK_SET), expected %i, got %lli", seekPos, seekPos, i);
    1.18  
    1.19     /* Test seek back to start */
    1.20     i = SDL_RWseek(rw, 0, RW_SEEK_SET );
    1.21     SDLTest_AssertPass("Call to SDL_RWseek succeeded");
    1.22 -   SDLTest_AssertCheck(i == (Sint64)0, "Verify seek to 0 with SDL_RWseek (RW_SEEK_SET), expected 0, got %i", i);
    1.23 +   SDLTest_AssertCheck(i == (Sint64)0, "Verify seek to 0 with SDL_RWseek (RW_SEEK_SET), expected 0, got %lli", i);
    1.24  
    1.25     /* Test read */
    1.26     s = SDL_RWread( rw, buf, 1, sizeof(RWopsHelloWorldTestString)-1 );
    1.27 @@ -144,7 +144,7 @@
    1.28     SDLTest_AssertPass("Call to SDL_RWseek(...,-4,RW_SEEK_CUR) succeeded");
    1.29     SDLTest_AssertCheck(
    1.30         i == (Sint64)(sizeof(RWopsHelloWorldTestString)-5),
    1.31 -       "Verify seek to -4 with SDL_RWseek (RW_SEEK_CUR), expected %i, got %i",
    1.32 +       "Verify seek to -4 with SDL_RWseek (RW_SEEK_CUR), expected %i, got %lli",
    1.33         sizeof(RWopsHelloWorldTestString)-5,
    1.34         i);
    1.35  
    1.36 @@ -152,7 +152,7 @@
    1.37     SDLTest_AssertPass("Call to SDL_RWseek(...,-1,RW_SEEK_END) succeeded");
    1.38     SDLTest_AssertCheck(
    1.39         i == (Sint64)(sizeof(RWopsHelloWorldTestString)-2),
    1.40 -       "Verify seek to -1 with SDL_RWseek (RW_SEEK_END), expected %i, got %i",
    1.41 +       "Verify seek to -1 with SDL_RWseek (RW_SEEK_END), expected %i, got %lli",
    1.42         sizeof(RWopsHelloWorldTestString)-2,
    1.43         i);
    1.44  
    1.45 @@ -161,7 +161,7 @@
    1.46     SDLTest_AssertPass("Call to SDL_RWseek(...,0,invalid_whence) succeeded");
    1.47     SDLTest_AssertCheck(
    1.48         i == (Sint64)(-1),
    1.49 -       "Verify seek with SDL_RWseek (invalid_whence); expected: -1, got %i",
    1.50 +       "Verify seek with SDL_RWseek (invalid_whence); expected: -1, got %lli",
    1.51         i);
    1.52  }
    1.53  
    1.54 @@ -668,7 +668,7 @@
    1.55       /* Test seek to start */
    1.56       result = SDL_RWseek( rw, 0, RW_SEEK_SET );
    1.57       SDLTest_AssertPass("Call to SDL_RWseek succeeded");
    1.58 -     SDLTest_AssertCheck(result == 0, "Verify result from position 0 with SDL_RWseek, expected 0, got %i", result);
    1.59 +     SDLTest_AssertCheck(result == 0, "Verify result from position 0 with SDL_RWseek, expected 0, got %lli", result);
    1.60  
    1.61       /* Read test data */
    1.62       BE16test = SDL_ReadBE16(rw);