diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-18 16:05:42 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-23 09:27:47 +0200 |
commit | 35d9af6901647871612cc278ba28792e23708357 (patch) | |
tree | d1755e65e804af95d0396495fa39e50eecc04fca /cpukit/libtest/t-test-rtems-heap.c | |
parent | libtest: Add T_stop() (diff) | |
download | rtems-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-heap.c')
-rw-r--r-- | cpukit/libtest/t-test-rtems-heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libtest/t-test-rtems-heap.c b/cpukit/libtest/t-test-rtems-heap.c index 6d3204ab33..9b9e8a73ec 100644 --- a/cpukit/libtest/t-test-rtems-heap.c +++ b/cpukit/libtest/t-test-rtems-heap.c @@ -79,7 +79,7 @@ T_heap_case_end(void) where = "workspace"; } - T_check_true(ok, NULL, "memory leak in %s", where); + T_check(&T_special, ok, "memory leak in %s", where); memcpy(&ctx->workspace_info, &info, sizeof(info)); } @@ -88,7 +88,7 @@ T_heap_case_end(void) ok = memcmp(&info, &ctx->heap_info, sizeof(info)) == 0; if (!ok) { - T_check_true(ok, NULL, "memory leak in heap"); + T_check(&T_special, ok, "memory leak in heap"); memcpy(&ctx->heap_info, &info, sizeof(info)); } } |