Mercurial > hg > th-libs
changeset 305:5afd918cbd79
Have a return value for test result functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Feb 2016 20:19:26 +0200 |
parents | 3fcf42cce43d |
children | a95b5e5c1cd5 |
files | tests.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests.c Mon Feb 22 19:52:18 2016 +0200 +++ b/tests.c Mon Feb 22 20:19:26 2016 +0200 @@ -161,18 +161,20 @@ } -void test_result_msg(test_ctx *ctx, BOOL check, const char *fmt, ...) +BOOL test_result_msg(test_ctx *ctx, BOOL check, const char *fmt, ...) { va_list ap; va_start(ap, fmt); test_result_msg_v(ctx, check, fmt, ap); va_end(ap); + return check; } -void test_result(test_ctx *ctx, BOOL check) +BOOL test_result(test_ctx *ctx, BOOL check) { test_result_msg_v(ctx, check, NULL, NULL); + return check; }