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
28324935
Commit
28324935
authored
Aug 14, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed tests in dummy suite.
parent
499e8b0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
testdummy.c
test/test-automation/tests/testdummy/testdummy.c
+8
-8
No files found.
test/test-automation/tests/testdummy/testdummy.c
View file @
28324935
...
...
@@ -35,16 +35,16 @@
/* Test case references */
static
const
TestCaseReference
test1
=
(
TestCaseReference
){
"
dummycase
1"
,
"description"
,
TEST_ENABLED
,
0
,
4
};
(
TestCaseReference
){
"
test_dummy
1"
,
"description"
,
TEST_ENABLED
,
0
,
4
};
static
const
TestCaseReference
test2
=
(
TestCaseReference
){
"
dummycase
2"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
(
TestCaseReference
){
"
test_dummy
2"
,
"description"
,
TEST_ENABLED
,
0
,
0
};
static
const
TestCaseReference
test3
=
(
TestCaseReference
){
"test
fuzzy_case3
"
,
"description"
,
TEST_ENABLED
,
0
,
2
};
(
TestCaseReference
){
"test
_fuzzy
"
,
"description"
,
TEST_ENABLED
,
0
,
2
};
static
const
TestCaseReference
test4
=
(
TestCaseReference
){
"test
fuzzy_case4
"
,
"description"
,
TEST_ENABLED
,
0
,
2
};
(
TestCaseReference
){
"test
_leak
"
,
"description"
,
TEST_ENABLED
,
0
,
2
};
/* Test suite */
extern
const
TestCaseReference
*
testSuite
[]
=
{
...
...
@@ -92,7 +92,7 @@ TearDown(void *arg)
/* Test case functions */
void
dummycase
1
(
void
*
arg
)
test_dummy
1
(
void
*
arg
)
{
AssertEquals
(
5
,
5
,
"Assert message"
);
...
...
@@ -134,7 +134,7 @@ dummycase1(void *arg)
}
void
dummycase
2
(
void
*
arg
)
test_dummy
2
(
void
*
arg
)
{
char
*
msg
=
"eello"
;
//msg[0] = 'H';
...
...
@@ -142,7 +142,7 @@ dummycase2(void *arg)
}
void
test
fuzzy_case3
(
void
*
arg
)
test
_fuzzy
(
void
*
arg
)
{
// Simulates a fuzzing failure
AssertTrue
(
RandomUint8
()
!=
100
,
"Value is 100"
);
...
...
@@ -156,7 +156,7 @@ f(void) {
void
test
fuzzy_case4
(
void
*
arg
)
test
_leak
(
void
*
arg
)
{
// Creates a memory leak
f
();
...
...
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