diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-13 11:33:47 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-18 07:08:51 +0200 |
commit | 72960bc7d4c8f7eb7687827d1c1545b1eb5fdb71 (patch) | |
tree | 1bf7537d745a7a46dc42aaebe26077296ad667ea /testsuites/libtests/ttest01/test-plan.c | |
parent | libtest: Add fixture steps (diff) | |
download | rtems-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/libtests/ttest01/test-plan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/libtests/ttest01/test-plan.c b/testsuites/libtests/ttest01/test-plan.c index 155704c478..4a550f34fa 100644 --- a/testsuites/libtests/ttest01/test-plan.c +++ b/testsuites/libtests/ttest01/test-plan.c @@ -28,10 +28,10 @@ T_TEST_CASE(double_plan) T_TEST_CASE(steps) { - T_step(0, "a"); + T_step(0); T_plan(3); - T_step(1, "b"); - T_step(2, "c"); + T_step(1); + T_step(2); } #include "t-self-test.h" |