From 35d9af6901647871612cc278ba28792e23708357 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 18 Jul 2020 16:05:42 +0200 Subject: 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. --- cpukit/libtest/t-test-rtems-objs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/libtest/t-test-rtems-objs.c') diff --git a/cpukit/libtest/t-test-rtems-objs.c b/cpukit/libtest/t-test-rtems-objs.c index 72447fd22f..ed7222e98e 100644 --- a/cpukit/libtest/t-test-rtems-objs.c +++ b/cpukit/libtest/t-test-rtems-objs.c @@ -76,7 +76,8 @@ T_objects_check(Objects_APIs api, uint16_t cls, if (delta != 0) { *expected = count; - T_check_true(false, NULL, "%s leak (%" PRIi32 ")", name, delta); + T_check(&T_special, false, "%s leak (%" PRIi32 ")", name, + delta); } } -- cgit v1.2.3