summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpmulticast01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-13 11:33:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-18 07:08:51 +0200
commit72960bc7d4c8f7eb7687827d1c1545b1eb5fdb71 (patch)
tree1bf7537d745a7a46dc42aaebe26077296ad667ea /testsuites/smptests/smpmulticast01/init.c
parentlibtest: Add fixture steps (diff)
downloadrtems-72960bc7d4c8f7eb7687827d1c1545b1eb5fdb71.tar.bz2
libtest: Change T_step() and T_assert_step()
Normally, the expected test step must be a compile time constant. Allow variable expected test steps for the T_step() and T_assert_step(). This can be used for parameterized test loops with individual fixtures. Remove the ability to use custom failure messages due to some implementation constraints. Update #3199.
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpmulticast01/init.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/smptests/smpmulticast01/init.c b/testsuites/smptests/smpmulticast01/init.c
index b6ee9f93cc..f5ed70952a 100644
--- a/testsuites/smptests/smpmulticast01/init.c
+++ b/testsuites/smptests/smpmulticast01/init.c
@@ -432,17 +432,17 @@ static Per_CPU_Job job_order_jobs[TEST_JOB_ORDER_JOBS];
static void job_order_handler_0(void *arg)
{
- T_step(1, "invalid job order");
+ T_step(1);
}
static void job_order_handler_1(void *arg)
{
- T_step(2, "invalid job order");
+ T_step(2);
}
static void job_order_handler_2(void *arg)
{
- T_step(3, "invalid job order");
+ T_step(3);
}
static const Per_CPU_Job_context job_order_contexts[TEST_JOB_ORDER_JOBS] = {
@@ -464,7 +464,7 @@ T_TEST_CASE(JobOrder)
_Per_CPU_Add_job(cpu_self, &job_order_jobs[i]);
}
- T_step(0, "wrong job processing time");
+ T_step(0);
_SMP_Send_message(_Per_CPU_Get_index(cpu_self), SMP_MESSAGE_PERFORM_JOBS);
_Thread_Dispatch_enable(cpu_self);
}
@@ -475,13 +475,13 @@ static Per_CPU_Job add_job_in_job_jobs[TEST_ADD_JOB_IN_JOB_JOBS];
static void add_job_in_job_handler_0(void *arg)
{
- T_step(1, "invalid job order");
+ T_step(1);
_Per_CPU_Add_job(_Per_CPU_Get(), &add_job_in_job_jobs[1]);
}
static void add_job_in_job_handler_1(void *arg)
{
- T_step(3, "invalid job order");
+ T_step(3);
}
static const Per_CPU_Job_context
@@ -503,9 +503,9 @@ T_TEST_CASE(AddJobInJob)
}
_Per_CPU_Add_job(cpu_self, &add_job_in_job_jobs[0]);
- T_step(0, "wrong job processing time");
+ T_step(0);
_SMP_Send_message(_Per_CPU_Get_index(cpu_self), SMP_MESSAGE_PERFORM_JOBS);
- T_step(2, "wrong job processing time");
+ T_step(2);
_SMP_Send_message(_Per_CPU_Get_index(cpu_self), SMP_MESSAGE_PERFORM_JOBS);
_Thread_Dispatch_enable(cpu_self);
}