Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
5ad396d1
Commit
5ad396d1
authored
Jul 10, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated assert messages in surface test suite.
parent
48bcede0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
testsurface.c
test/test-automation/testsurface/testsurface.c
+9
-9
No files found.
test/test-automation/testsurface/testsurface.c
View file @
5ad396d1
...
@@ -134,7 +134,7 @@ void surface_testLoad(void *arg)
...
@@ -134,7 +134,7 @@ void surface_testLoad(void *arg)
/* See if it's the same. */
/* See if it's the same. */
AssertTrue
(
surface_compare
(
rface
,
&
img_face
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
rface
,
&
img_face
,
0
)
==
0
,
"
Primitives output not the same
."
);
"
Comparing primitives output
."
);
/* Clean up. */
/* Clean up. */
SDL_FreeSurface
(
rface
);
SDL_FreeSurface
(
rface
);
...
@@ -204,7 +204,7 @@ void surface_testBlit(void *arg)
...
@@ -204,7 +204,7 @@ void surface_testBlit(void *arg)
/* See if it's the same. */
/* See if it's the same. */
AssertTrue
(
surface_compare
(
testsur
,
&
img_blit
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blit
,
0
)
==
0
,
"
Blitting output not the same
(normal blit)."
);
"
Comparing blitting output
(normal blit)."
);
/* Clear surface. */
/* Clear surface. */
ret
=
SDL_FillRect
(
testsur
,
NULL
,
ret
=
SDL_FillRect
(
testsur
,
NULL
,
...
@@ -229,7 +229,7 @@ void surface_testBlit(void *arg)
...
@@ -229,7 +229,7 @@ void surface_testBlit(void *arg)
/* See if it's the same. */
/* See if it's the same. */
AssertTrue
(
surface_compare
(
testsur
,
&
img_blitColour
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blitColour
,
0
)
==
0
,
"
Blitting output not the same
(using SDL_SetSurfaceColorMod)."
);
"
Comparing blitting output
(using SDL_SetSurfaceColorMod)."
);
/* Clear surface. */
/* Clear surface. */
ret
=
SDL_FillRect
(
testsur
,
NULL
,
ret
=
SDL_FillRect
(
testsur
,
NULL
,
...
@@ -257,7 +257,7 @@ void surface_testBlit(void *arg)
...
@@ -257,7 +257,7 @@ void surface_testBlit(void *arg)
/* See if it's the same. */
/* See if it's the same. */
AssertTrue
(
surface_compare
(
testsur
,
&
img_blitAlpha
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blitAlpha
,
0
)
==
0
,
"
Blitting output not the same
(using SDL_SetSurfaceAlphaMod)."
);
"
Comparing blitting output
(using SDL_SetSurfaceAlphaMod)."
);
/* Clean up. */
/* Clean up. */
SDL_FreeSurface
(
face
);
SDL_FreeSurface
(
face
);
...
@@ -321,25 +321,25 @@ void surface_testBlitBlend(void *arg)
...
@@ -321,25 +321,25 @@ void surface_testBlitBlend(void *arg)
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_NONE
))
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_NONE
))
return
;
return
;
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendNone
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendNone
,
0
)
==
0
,
"
Blitting blending output not the same
(using SDL_BLENDMODE_NONE)."
);
"
Comparing blitting blending output
(using SDL_BLENDMODE_NONE)."
);
/* Test Blend. */
/* Test Blend. */
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_BLEND
))
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_BLEND
))
return
;
return
;
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendBlend
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendBlend
,
0
)
==
0
,
"
Blitting blending output not the same
(using SDL_BLENDMODE_BLEND)."
);
"
Comparing blitting blending output
(using SDL_BLENDMODE_BLEND)."
);
/* Test Add. */
/* Test Add. */
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_ADD
))
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_ADD
))
return
;
return
;
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendAdd
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendAdd
,
0
)
==
0
,
"
Blitting blending output not the same
(using SDL_BLENDMODE_ADD)."
);
"
Comparing blitting blending output
(using SDL_BLENDMODE_ADD)."
);
/* Test Mod. */
/* Test Mod. */
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_MOD
))
if
(
testBlitBlendMode
(
testsur
,
face
,
SDL_BLENDMODE_MOD
))
return
;
return
;
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendMod
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendMod
,
0
)
==
0
,
"
B
litting blending output not the same (using SDL_BLENDMODE_MOD)."
);
"
Comparing b
litting blending output not the same (using SDL_BLENDMODE_MOD)."
);
/* Clear surface. */
/* Clear surface. */
ret
=
SDL_FillRect
(
testsur
,
NULL
,
ret
=
SDL_FillRect
(
testsur
,
NULL
,
...
@@ -379,7 +379,7 @@ void surface_testBlitBlend(void *arg)
...
@@ -379,7 +379,7 @@ void surface_testBlitBlend(void *arg)
/* Check to see if matches. */
/* Check to see if matches. */
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendAll
,
0
)
==
0
,
AssertTrue
(
surface_compare
(
testsur
,
&
img_blendAll
,
0
)
==
0
,
"
Blitting blending output not the same (using SDL_BLEND_*
)."
);
"
Surface comparison (surface_compare
)."
);
/* Clean up. */
/* Clean up. */
SDL_FreeSurface
(
face
);
SDL_FreeSurface
(
face
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment