summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/ttest02/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-13 09:59:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-18 07:08:51 +0200
commit5383d4db04bc8b8c97957edb54375de304e0458b (patch)
tree8e3c750e5b3d304caaa8f4c029d6e1256e42d65b /testsuites/libtests/ttest02/init.c
parentlibtest: Add T_check_steps() (diff)
downloadrtems-5383d4db04bc8b8c97957edb54375de304e0458b.tar.bz2
libtest: Add fixture steps
Support a new test plan for each nested fixture. Update #3199.
Diffstat (limited to '')
-rw-r--r--testsuites/libtests/ttest02/init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuites/libtests/ttest02/init.c b/testsuites/libtests/ttest02/init.c
index 846a778536..7f972aec7e 100644
--- a/testsuites/libtests/ttest02/init.c
+++ b/testsuites/libtests/ttest02/init.c
@@ -134,6 +134,7 @@ static void
fatal(void *arg)
{
(void)arg;
+ T_plan(1);
T_step(0);
T_stop();
}
@@ -149,7 +150,6 @@ T_TEST_CASE(TestInterruptFatal)
{
Atomic_Uint action_state;
- T_plan(1);
T_interrupt_test(&fatal_config, &action_state);
T_unreachable();
}
@@ -161,6 +161,7 @@ suspend(void *arg)
rtems_id *id;
id = arg;
+ T_plan(2);
sc = rtems_task_suspend(*id);
T_step_rsc_success(1, sc);
}
@@ -202,10 +203,10 @@ T_TEST_CASE(TestInterruptBlocked)
T_interrupt_test_state state;
rtems_id id;
- T_plan(3);
+ T_plan(1);
id = rtems_task_self();
state = T_interrupt_test(&blocked_config, &id);
- T_step_eq_int(2, state, T_INTERRUPT_TEST_DONE);
+ T_step_eq_int(0, state, T_INTERRUPT_TEST_DONE);
}
T_TEST_CASE(TestThreadSwitch)