Fixed incorrect assertions in surface test suite.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Thu, 14 Jul 2011 20:43:32 +0300
changeset 5760 735407c0bda3
parent 5759 59615ddece72
child 5761 63619145c6dc
Fixed incorrect assertions in surface test suite.
test/test-automation/testsurface/testsurface.c
--- a/test/test-automation/testsurface/testsurface.c	Thu Jul 14 20:33:18 2011 +0300
+++ b/test/test-automation/testsurface/testsurface.c	Thu Jul 14 20:43:32 2011 +0300
@@ -157,7 +157,7 @@
 	/* Clear surface. */
 	ret = SDL_FillRect( testsur, NULL,
 		 SDL_MapRGB( testsur->format, 0, 0, 0 ) );
-	 AssertTrue(ret != 0, "SDL_FillRect");
+	 AssertTrue(ret == 0, "SDL_FillRect");
 
 	/* Steps to take. */
 	ni     = testsur->w - face->w;
@@ -172,14 +172,15 @@
 	  for (i=0; i <= ni; i+=4) {
 		 /* Set blend mode. */
 		 ret = SDL_SetSurfaceBlendMode( face, mode );
-		 AssertTrue(ret != 0, "SDL_SetSurfaceBlendMode");
+		 AssertTrue(ret == 0, "SDL_SetSurfaceBlendMode");
 
 		 /* Blitting. */
 		 rect.x = i;
 		 rect.y = j;
 		 // TODO Add pixel level validation, SDL_BlitSurface might be no-op
 		 ret = SDL_BlitSurface( face, NULL, testsur, &rect );
-		 AssertTrue(ret != 0, "SDL_BlitSurface");	  }
+		 AssertTrue(ret == 0, "SDL_BlitSurface");
+	  }
 	}
 }