]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: event-filter-parser - Test simple but invalid input
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 12 Nov 2020 19:15:54 +0000 (14:15 -0500)
committerJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 12 Nov 2020 19:15:54 +0000 (14:15 -0500)
src/lib/test-event-filter-parser.c

index cdde28d50803bdcc90fb9025e0df5f2684f9aeba..3f769777c7494a0095246875b85e304546b3ce65 100644 (file)
@@ -503,6 +503,11 @@ static void test_event_filter_parser_generated(bool parens)
        }
 }
 
+static void test_event_filter_parser_simple_invalid(void)
+{
+       testcase("simple invalid", "a=b=c", "", TRUE);
+}
+
 void test_event_filter_parser(void)
 {
        test_event_filter_parser_table();
@@ -510,4 +515,5 @@ void test_event_filter_parser(void)
        test_event_filter_parser_simple_nesting();
        test_event_filter_parser_generated(FALSE);
        test_event_filter_parser_generated(TRUE);
+       test_event_filter_parser_simple_invalid();
 }