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
be0531f0
Commit
be0531f0
authored
Sep 05, 2011
by
Andreas Schiffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for SDL_HasIntersection; added negative parameter tests; refactored existing test code
parent
e36c0d83
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
257 additions
and
76 deletions
+257
-76
runner.c
test/test-automation/src/runner/runner.c
+3
-2
testrect.c
test/test-automation/tests/testrect/testrect.c
+254
-74
No files found.
test/test-automation/src/runner/runner.c
View file @
be0531f0
...
@@ -607,7 +607,7 @@ LoadTestCaseFunction(void *suite, char *testName)
...
@@ -607,7 +607,7 @@ LoadTestCaseFunction(void *suite, char *testName)
{
{
TestCaseFp
test
=
(
TestCaseFp
)
SDL_LoadFunction
(
suite
,
testName
);
TestCaseFp
test
=
(
TestCaseFp
)
SDL_LoadFunction
(
suite
,
testName
);
if
(
test
==
NULL
)
{
if
(
test
==
NULL
)
{
fprintf
(
stderr
,
"Loading test
failed, tests == NULL
\n
"
);
fprintf
(
stderr
,
"Loading test
%s failed, test == NULL
\n
"
,
testName
);
fprintf
(
stderr
,
"%s
\n
"
,
SDL_GetError
());
fprintf
(
stderr
,
"%s
\n
"
,
SDL_GetError
());
}
}
...
@@ -702,6 +702,7 @@ LoadCountFailedAssertsFunction(void *suite) {
...
@@ -702,6 +702,7 @@ LoadCountFailedAssertsFunction(void *suite) {
return
countFailedAssert
;
return
countFailedAssert
;
}
}
#define USE_SDL_TIMER_FOR_TIMEOUT
/*!
/*!
* Set timeout for test.
* Set timeout for test.
...
@@ -722,7 +723,7 @@ SetTestTimeout(int timeout, void (*callback)(int))
...
@@ -722,7 +723,7 @@ SetTestTimeout(int timeout, void (*callback)(int))
int
tm
=
(
timeout
>
universal_timeout
?
timeout
:
universal_timeout
);
int
tm
=
(
timeout
>
universal_timeout
?
timeout
:
universal_timeout
);
#if
1
#if
def USE_SDL_TIMER_FOR_TIMEOUT
/* Init SDL timer if not initialized before */
/* Init SDL timer if not initialized before */
if
(
SDL_WasInit
(
SDL_INIT_TIMER
)
==
0
)
{
if
(
SDL_WasInit
(
SDL_INIT_TIMER
)
==
0
)
{
if
(
SDL_InitSubSystem
(
SDL_INIT_TIMER
))
{
if
(
SDL_InitSubSystem
(
SDL_INIT_TIMER
))
{
...
...
test/test-automation/tests/testrect/testrect.c
View file @
be0531f0
This diff is collapsed.
Click to expand it.
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