]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: test-settings-parser - Check settings_parser_check() return value
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Oct 2021 00:29:09 +0000 (03:29 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 7 Oct 2021 07:23:08 +0000 (07:23 +0000)
src/lib-settings/test-settings-parser.c

index f0dd9cac4374bd8001024ae90b064b118283d6ad..83aefbafce645277eb25be6ac73ad12a8af6807e 100644 (file)
@@ -290,7 +290,7 @@ static void test_settings_parser_get(void)
                i_error("settings_parse_stream failed: %s",
                        settings_parser_get_error(ctx));
        i_stream_unref(&is);
-       settings_parser_check(ctx, pool, NULL);
+       test_assert(settings_parser_check(ctx, pool, NULL));
 
        /* check what we got */
        struct test_settings *settings = settings_parser_get(ctx);