aboutsummaryrefslogtreecommitdiffstats
path: root/test/testrdy.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testrdy.c')
-rw-r--r--test/testrdy.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/test/testrdy.c b/test/testrdy.c
index a9b52701e..b085fde02 100644
--- a/test/testrdy.c
+++ b/test/testrdy.c
@@ -32,12 +32,6 @@ static char *rdy1_gettest(void) {
return "Ready List, priority enqueuing test #1";
}
-static void rdy1_setup(void) {
-}
-
-static void rdy1_teardown(void) {
-}
-
static void rdy1_execute(void) {
threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()-5, thread, "E");
@@ -51,8 +45,8 @@ static void rdy1_execute(void) {
const struct testcase testrdy1 = {
rdy1_gettest,
- rdy1_setup,
- rdy1_teardown,
+ NULL,
+ NULL,
rdy1_execute
};
@@ -61,12 +55,6 @@ static char *rdy2_gettest(void) {
return "Ready List, priority enqueuing test #2";
}
-static void rdy2_setup(void) {
-}
-
-static void rdy2_teardown(void) {
-}
-
static void rdy2_execute(void) {
threads[1] = chThdCreateStatic(wa[1], WA_SIZE, chThdGetPriority()-4, thread, "D");
@@ -80,7 +68,16 @@ static void rdy2_execute(void) {
const struct testcase testrdy2 = {
rdy2_gettest,
- rdy2_setup,
- rdy2_teardown,
+ NULL,
+ NULL,
rdy2_execute
};
+
+/*
+ * Test sequence for ready list pattern.
+ */
+const struct testcase *patternrdy[] = {
+ &testrdy1,
+ &testrdy2,
+ NULL
+};