Browse Source

Fix error assert for negative cases of pixels_getPixelFormatName test

Andreas Schiffler 12 năm trước cách đây
mục cha
commit
09b3b7e78b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/testautomation_pixels.c

+ 1 - 1
test/testautomation_pixels.c

@@ -297,7 +297,7 @@ pixels_getPixelFormatName(void *arg)
     }
     error = SDL_GetError();
     SDLTest_AssertPass("Call to SDL_GetError()");
-    SDLTest_AssertCheck(error != NULL && error[0] != '\0', "Validate that error message is empty");
+    SDLTest_AssertCheck(error == NULL || error[0] == '\0', "Validate that error message is empty");
   }
 
   return TEST_COMPLETED;