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
481c64b2
Commit
481c64b2
authored
Jun 11, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added timeout to TestCaseReference.
parent
3c395336
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
SDL_test.h
test/test-automation/SDL_test.h
+10
-4
testdummy.c
test/test-automation/testdummy/testdummy.c
+3
-3
testrect.c
test/test-automation/testrect/testrect.c
+1
-1
No files found.
test/test-automation/SDL_test.h
View file @
481c64b2
...
@@ -35,10 +35,16 @@ extern int _testAssertsPassed;
...
@@ -35,10 +35,16 @@ extern int _testAssertsPassed;
* Holds information about a test case
* Holds information about a test case
*/
*/
typedef
struct
TestCaseReference
{
typedef
struct
TestCaseReference
{
char
*
name
;
/*!< "Func2Stress" */
/*!< "Func2Stress" */
char
*
description
;
/*!< "This test beats the crap out of func2()" */
char
*
name
;
int
enabled
;
/*!< Set to TEST_ENABLED or TEST_DISABLED */
/*!< "This test beats the crap out of func2()" */
long
requirements
;
/*!< Set to TEST_REQUIRES_OPENGL, TEST_REQUIRES_AUDIO, ... */
char
*
description
;
/*!< Set to TEST_ENABLED or TEST_DISABLED */
int
enabled
;
/*!< Set to TEST_REQUIRES_OPENGL, TEST_REQUIRES_AUDIO, ... */
long
requirements
;
/*<! Timeout value in seconds. If exceeded runner will kill the test. 0 means infinite time */
long
timeout
;
}
TestCaseReference
;
}
TestCaseReference
;
/*! \fn _TestCaseInit
/*! \fn _TestCaseInit
...
...
test/test-automation/testdummy/testdummy.c
View file @
481c64b2
...
@@ -37,13 +37,13 @@
...
@@ -37,13 +37,13 @@
/* Test case references */
/* Test case references */
static
const
TestCaseReference
test1
=
static
const
TestCaseReference
test1
=
(
TestCaseReference
){
"dummycase1"
,
"description"
,
TEST_ENABLED
,
0
};
(
TestCaseReference
){
"dummycase1"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
static
const
TestCaseReference
test2
=
static
const
TestCaseReference
test2
=
(
TestCaseReference
){
"dummycase2"
,
"description"
,
TEST_ENABLED
,
0
};
(
TestCaseReference
){
"dummycase2"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
static
const
TestCaseReference
test3
=
static
const
TestCaseReference
test3
=
(
TestCaseReference
){
"dummycase3"
,
"description"
,
TEST_ENABLED
,
0
};
(
TestCaseReference
){
"dummycase3"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
/* Test suite */
/* Test suite */
extern
const
TestCaseReference
*
testSuite
[]
=
{
extern
const
TestCaseReference
*
testSuite
[]
=
{
...
...
test/test-automation/testrect/testrect.c
View file @
481c64b2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
/* Test cases */
/* Test cases */
static
const
TestCaseReference
test1
=
static
const
TestCaseReference
test1
=
(
TestCaseReference
){
"rect_testIntersectRectAndLine"
,
"description"
,
TEST_ENABLED
,
0
};
(
TestCaseReference
){
"rect_testIntersectRectAndLine"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
/* Test suite */
/* Test suite */
extern
const
TestCaseReference
*
testSuite
[]
=
{
extern
const
TestCaseReference
*
testSuite
[]
=
{
...
...
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