aboutsummaryrefslogtreecommitdiffstats
path: root/test/testthd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-15 11:34:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-15 11:34:16 +0000
commita544f87a38e6f0b4b60113dbec8352d5f6c04104 (patch)
treeeb09ecf7b7ed53ce3ec47a7be96d3307f3e2732c /test/testthd.c
parenteee0672c0a2da8eae066ca32ac19fa6f974876bb (diff)
downloadChibiOS-a544f87a38e6f0b4b60113dbec8352d5f6c04104.tar.gz
ChibiOS-a544f87a38e6f0b4b60113dbec8352d5f6c04104.tar.bz2
ChibiOS-a544f87a38e6f0b4b60113dbec8352d5f6c04104.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2020 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testthd.c')
-rw-r--r--test/testthd.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/test/testthd.c b/test/testthd.c
index c2150a9c1..232ea7008 100644
--- a/test/testthd.c
+++ b/test/testthd.c
@@ -66,11 +66,6 @@ static msg_t thread(void *p) {
return 0;
}
-static char *thd1_gettest(void) {
-
- return "Threads, enqueuing test #1";
-}
-
static void thd1_execute(void) {
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()-5, thread, "E");
@@ -83,7 +78,7 @@ static void thd1_execute(void) {
}
const struct testcase testthd1 = {
- thd1_gettest,
+ "Threads, enqueuing test #1",
NULL,
NULL,
thd1_execute
@@ -99,11 +94,6 @@ const struct testcase testthd1 = {
* priority order regardless of the initial order.
*/
-static char *thd2_gettest(void) {
-
- return "Threads, enqueuing test #2";
-}
-
static void thd2_execute(void) {
threads[1] = chThdCreateStatic(wa[1], WA_SIZE, chThdGetPriority()-4, thread, "D");
@@ -116,7 +106,7 @@ static void thd2_execute(void) {
}
const struct testcase testthd2 = {
- thd2_gettest,
+ "Threads, enqueuing test #2",
NULL,
NULL,
thd2_execute
@@ -132,11 +122,6 @@ const struct testcase testthd2 = {
* also tested under priority inheritance boosted priority state.
*/
-static char *thd3_gettest(void) {
-
- return "Threads, priority change";
-}
-
static void thd3_execute(void) {
tprio_t prio, p1;
@@ -186,7 +171,7 @@ static void thd3_execute(void) {
}
const struct testcase testthd3 = {
- thd3_gettest,
+ "Threads, priority change",
NULL,
NULL,
thd3_execute
@@ -200,11 +185,6 @@ const struct testcase testthd3 = {
* to wake up at the exact expected time.
*/
-static char *thd4_gettest(void) {
-
- return "Threads, delays";
-}
-
static void thd4_execute(void) {
systime_t time;
@@ -232,7 +212,7 @@ static void thd4_execute(void) {
}
const struct testcase testthd4 = {
- thd4_gettest,
+ "Threads, delays",
NULL,
NULL,
thd4_execute