Mercurial > dovecot > core-2.2
changeset 21298:e99464c82e52
lib-test: test_run_with_fatals() now takes a const array
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 12 Dec 2016 15:17:23 +0200 |
parents | 083846b77c3b |
children | 5be9ee567034 |
files | src/lib-test/test-common.c src/lib-test/test-common.h |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-test/test-common.c Mon Dec 12 15:16:34 2016 +0200 +++ b/src/lib-test/test-common.c Mon Dec 12 15:17:23 2016 +0200 @@ -287,7 +287,7 @@ } } } -static void test_run_fatals(test_fatal_func_t *fatal_functions[]) +static void test_run_fatals(test_fatal_func_t *const fatal_functions[]) { unsigned int i; @@ -321,7 +321,7 @@ return test_deinit(); } int test_run_with_fatals(void (*test_functions[])(void), - test_fatal_func_t *fatal_functions[]) + test_fatal_func_t *const fatal_functions[]) { test_init(); test_run_funcs(test_functions);
--- a/src/lib-test/test-common.h Mon Dec 12 15:16:34 2016 +0200 +++ b/src/lib-test/test-common.h Mon Dec 12 15:17:23 2016 +0200 @@ -79,7 +79,7 @@ test_fatal_func_t *func; }; int test_run_with_fatals(void (*test_functions[])(void), - test_fatal_func_t *fatal_functions[]); + test_fatal_func_t *const fatal_functions[]); int test_run_named_with_fatals(const char *match, struct named_test tests[], struct named_fatal fatals[]);