]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test-var-expand: Expect error
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 31 Mar 2017 12:30:58 +0000 (15:30 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 31 Mar 2017 12:30:58 +0000 (15:30 +0300)
src/lib/test-var-expand.c

index 386b1c6a1596d5038db9fb8870dbf0738b560304..1db997abeb82afd179ec9f85eb121d994fa9f182 100644 (file)
@@ -263,6 +263,8 @@ static void test_var_expand_extensions(void)
 
        var_expand_with_funcs(str, "notfound: %{notfound:field}",
                              table, func_table, NULL);
+       /* expect error */
+       test_expect_errors(1);
        var_expand_with_funcs(str, "notfound: %{badparam:field}",
                              table, func_table, NULL);