summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/t-test-rtems.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-18 16:05:42 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-23 09:27:47 +0200
commit35d9af6901647871612cc278ba28792e23708357 (patch)
treed1755e65e804af95d0396495fa39e50eecc04fca /cpukit/libtest/t-test-rtems.c
parentlibtest: Add T_stop() (diff)
downloadrtems-35d9af6901647871612cc278ba28792e23708357.tar.bz2
libtest: Add T_CHECK_FMT
Rename internal function T_check_true() to T_check() and use the new flag T_CHECK_FMT to indicate if a format string is present. This is a preparation step to make the format string optional. Make the check context the first parameter. The API remains the same. Update #3199.
Diffstat (limited to 'cpukit/libtest/t-test-rtems.c')
-rw-r--r--cpukit/libtest/t-test-rtems.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libtest/t-test-rtems.c b/cpukit/libtest/t-test-rtems.c
index f8e2b4b747..8ca5a089df 100644
--- a/cpukit/libtest/t-test-rtems.c
+++ b/cpukit/libtest/t-test-rtems.c
@@ -38,14 +38,14 @@ T_putchar_default(int c, void *arg)
}
void
-T_check_rsc(uint32_t a, const T_check_context *t, uint32_t e)
+T_check_rsc(const T_check_context *t, uint32_t a, uint32_t e)
{
- T_check_true(a == e, t, "%s == %s", rtems_status_text(a),
+ T_check(t, a == e, "%s == %s", rtems_status_text(a),
rtems_status_text(e));
}
void
-T_check_rsc_success(uint32_t a, const T_check_context *t)
+T_check_rsc_success(const T_check_context *t, uint32_t a)
{
- T_check_rsc(a, t, RTEMS_SUCCESSFUL);
+ T_check_rsc(t, a, RTEMS_SUCCESSFUL);
}