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-checks-psx.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 '')
-rw-r--r-- | cpukit/libtest/t-test-checks-psx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libtest/t-test-checks-psx.c b/cpukit/libtest/t-test-checks-psx.c index e14ce65246..fe2b375b8f 100644 --- a/cpukit/libtest/t-test-checks-psx.c +++ b/cpukit/libtest/t-test-checks-psx.c @@ -2,16 +2,16 @@ #include <errno.h> -void T_check_psx_error(int a, const T_check_context *t, int eeno) +void T_check_psx_error(const T_check_context *t, int a, int eeno) { int aeno; aeno = errno; - T_check_true(a == -1 && aeno == eeno, t, "%i == -1, %s == %s", a, + T_check(t, a == -1 && aeno == eeno, "%i == -1, %s == %s", a, T_strerror(aeno), T_strerror(eeno)); } -void T_check_psx_success(int a, const T_check_context *t) +void T_check_psx_success(const T_check_context *t, int a) { - T_check_true(a == 0, t, "%i == 0, %s", a, T_strerror(errno)); + T_check(t, a == 0, "%i == 0, %s", a, T_strerror(errno)); } |