From: Aki Tuomi Date: Thu, 6 Feb 2025 07:44:44 +0000 (+0200) Subject: lib-var-expand: test-var-expand - Use test_assert_idx X-Git-Tag: 2.4.1~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e846658a2489134510ea8355330dc39b03542572;p=thirdparty%2Fdovecot%2Fcore.git lib-var-expand: test-var-expand - Use test_assert_idx --- diff --git a/src/lib-var-expand/test-var-expand.c b/src/lib-var-expand/test-var-expand.c index 09d589be07..a96d8202ab 100644 --- a/src/lib-var-expand/test-var-expand.c +++ b/src/lib-var-expand/test-var-expand.c @@ -41,12 +41,12 @@ static void run_var_expand_tests(const struct var_expand_params *params, test_assert_cmp_idx(test->ret, ==, ret, i); if (ret < 0) { - test_assert(error != NULL); - test_assert(dest->used == 0); + test_assert_idx(error != NULL, i); + test_assert_idx(dest->used == 0,i ); if (test->ret < 0) { i_assert(test->out != NULL && *test->out != '\0'); const char *match = strstr(error, test->out); - test_assert(match != NULL); + test_assert_idx(match != NULL, i); if (match == NULL) { i_debug("error '%s' does not contain '%s'", error, test->out);