summaryrefslogtreecommitdiffstats
path: root/cpukit/libtest/t-test-rtems-context.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-context.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-context.c')
-rw-r--r--cpukit/libtest/t-test-rtems-context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libtest/t-test-rtems-context.c b/cpukit/libtest/t-test-rtems-context.c
index 10f7322d92..5fce029f7c 100644
--- a/cpukit/libtest/t-test-rtems-context.c
+++ b/cpukit/libtest/t-test-rtems-context.c
@@ -41,15 +41,15 @@ T_do_check_task_context(void)
uint32_t v;
v = _Per_CPU_Get_snapshot()->thread_dispatch_disable_level;
- T_check_true(v == 0, NULL,
+ T_check(&T_special, v == 0,
"Wrong thread dispatch disabled level (%" PRIu32 ")", v);
v = _Per_CPU_Get_snapshot()->isr_nest_level;
- T_check_true(v == 0, NULL,
+ T_check(&T_special, v == 0,
"Wrong ISR nest level (%" PRIu32 ")", v);
v = _ISR_Get_level();
- T_check_true(v == 0, NULL,
+ T_check(&T_special, v == 0,
"Wrong ISR level (%" PRIu32 ")", v);
}