summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-14 09:56:51 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-18 07:08:51 +0200
commitc7289484348fc33f77dc99e74a8d0a298144514d (patch)
treef4272cf0be5f41e55e5427b657d303ff071654ca /cpukit/libtest
parentlibtest: Use a destructor (diff)
downloadrtems-c7289484348fc33f77dc99e74a8d0a298144514d.tar.bz2
libtest: Add T_push_plan() and T_pop_plan()
Update #3199.
Diffstat (limited to 'cpukit/libtest')
-rw-r--r--cpukit/libtest/t-test.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/libtest/t-test.c b/cpukit/libtest/t-test.c
index 3f9046a891..11f1cf70e9 100644
--- a/cpukit/libtest/t-test.c
+++ b/cpukit/libtest/t-test.c
@@ -550,6 +550,21 @@ void T_plan(unsigned int planned_steps)
expected);
}
+const T_fixture T_empty_fixture;
+
+void
+T_push_plan(T_fixture_node *node, unsigned int planned_steps)
+{
+ T_push_fixture(node, &T_empty_fixture);
+ T_plan(planned_steps);
+}
+
+void
+T_pop_plan(void)
+{
+ T_pop_fixture();
+}
+
void
T_check_step(const T_check_context *t, unsigned int expected)
{