changeset 21864:69257c124bd3

test-var-expand: Expect error
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Fri, 31 Mar 2017 15:30:58 +0300
parents 6900ada2307c
children c30cfcc6a195
files src/lib/test-var-expand.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/test-var-expand.c	Thu Mar 23 15:17:44 2017 +0200
+++ b/src/lib/test-var-expand.c	Fri Mar 31 15:30:58 2017 +0300
@@ -263,6 +263,8 @@
 
 	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);