Fixed incorrect assertions in surface test suite.
1.1 --- a/test/test-automation/testsurface/testsurface.c Thu Jul 14 20:33:18 2011 +0300
1.2 +++ b/test/test-automation/testsurface/testsurface.c Thu Jul 14 20:43:32 2011 +0300
1.3 @@ -157,7 +157,7 @@
1.4 /* Clear surface. */
1.5 ret = SDL_FillRect( testsur, NULL,
1.6 SDL_MapRGB( testsur->format, 0, 0, 0 ) );
1.7 - AssertTrue(ret != 0, "SDL_FillRect");
1.8 + AssertTrue(ret == 0, "SDL_FillRect");
1.9
1.10 /* Steps to take. */
1.11 ni = testsur->w - face->w;
1.12 @@ -172,14 +172,15 @@
1.13 for (i=0; i <= ni; i+=4) {
1.14 /* Set blend mode. */
1.15 ret = SDL_SetSurfaceBlendMode( face, mode );
1.16 - AssertTrue(ret != 0, "SDL_SetSurfaceBlendMode");
1.17 + AssertTrue(ret == 0, "SDL_SetSurfaceBlendMode");
1.18
1.19 /* Blitting. */
1.20 rect.x = i;
1.21 rect.y = j;
1.22 // TODO Add pixel level validation, SDL_BlitSurface might be no-op
1.23 ret = SDL_BlitSurface( face, NULL, testsur, &rect );
1.24 - AssertTrue(ret != 0, "SDL_BlitSurface"); }
1.25 + AssertTrue(ret == 0, "SDL_BlitSurface");
1.26 + }
1.27 }
1.28 }
1.29