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
c9ca0a46
Commit
c9ca0a46
authored
Jul 17, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed logging noise coming from unimplemented optional test
suite functions SetUp and TearDown.
parent
254a8168
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
29 deletions
+19
-29
runner.c
test/test-automation/runner.c
+19
-29
No files found.
test/test-automation/runner.c
View file @
c9ca0a46
...
...
@@ -496,13 +496,7 @@ LoadTestCaseFunction(void *suite, char *testName)
*/
TestCaseSetUpFp
LoadTestSetUpFunction
(
void
*
suite
)
{
TestCaseSetUpFp
testSetUp
=
(
TestCaseSetUpFp
)
SDL_LoadFunction
(
suite
,
"SetUp"
);
if
(
testSetUp
==
NULL
)
{
fprintf
(
stderr
,
"Loading SetUp function failed, testSetUp == NULL
\n
"
);
fprintf
(
stderr
,
"%s
\n
"
,
SDL_GetError
());
}
return
testSetUp
;
return
(
TestCaseSetUpFp
)
SDL_LoadFunction
(
suite
,
"SetUp"
);
}
...
...
@@ -516,13 +510,7 @@ LoadTestSetUpFunction(void *suite) {
*/
TestCaseTearDownFp
LoadTestTearDownFunction
(
void
*
suite
)
{
TestCaseTearDownFp
testTearDown
=
(
TestCaseTearDownFp
)
SDL_LoadFunction
(
suite
,
"TearDown"
);
if
(
testTearDown
==
NULL
)
{
fprintf
(
stderr
,
"Loading TearDown function failed, testTearDown == NULL
\n
"
);
fprintf
(
stderr
,
"%s
\n
"
,
SDL_GetError
());
}
return
testTearDown
;
return
(
TestCaseTearDownFp
)
SDL_LoadFunction
(
suite
,
"TearDown"
);
}
...
...
@@ -585,6 +573,23 @@ LoadCountFailedAssertsFunction(void *suite) {
}
/*!
* Kills test that hungs. Test hungs when its execution
* takes longer than timeout specified for it.
*
* When test will be killed SIG_ALRM will be triggered and
* it'll call this function which kills the test process.
*
* Note: if runner is executed with --in-proc then hung tests
* can't be killed
*
* \param signum
*/
void
KillHungTest
(
int
signum
)
{
exit
(
TEST_RESULT_KILLED
);
}
/*
* Execute a test. Loads the test, executes it and
* returns the tests return value to the caller.
...
...
@@ -614,21 +619,6 @@ RunTest(TestCase *testItem) {
return
testItem
->
quitTestEnvironment
();
}
/*!
* Kills test that hungs. Test hungs when its execution
* takes longer than timeout specified for it.
*
* When test will be killed SIG_ALRM will be triggered and
* it'll call this function which kills the test process.
*
* Note: if runner is executed with --in-proc then hung tests
* can't be killed
*
* \param signum
*/
void
KillHungTest
(
int
signum
)
{
exit
(
TEST_RESULT_KILLED
);
}
/*!
* Sets up a test case. Decideds wheter the test will
...
...
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