]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: test-var-expand - Use test_assert_idx
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 6 Feb 2025 07:44:44 +0000 (09:44 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:16 +0000 (12:34 +0200)
src/lib-var-expand/test-var-expand.c

index 09d589be0700cb363c8170c2a7ff33642db642d7..a96d8202abcfc85d049ac1a9f3e0696d2b972339 100644 (file)
@@ -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);