]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: test-var-expand - Fix expected message to match on older bison
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 6 Feb 2025 07:43:23 +0000 (09:43 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:16 +0000 (12:34 +0200)
Bison 3.0.4 produces different error

src/lib-var-expand/test-var-expand.c

index 6d6a666826c2b78055ddc4e6da70fd4660b4c0d3..09d589be0700cb363c8170c2a7ff33642db642d7 100644 (file)
@@ -639,9 +639,9 @@ static void test_var_expand_escape(void)
                { .in = "%{literal('\\\\x20')}", .out = "'\\x20'", .ret = 0 },
                /* Bad hex / oct */
                { .in = "\\xgg", .out = "\\xgg", .ret = 0 },
-               { .in = "%{literal('\\xgg')}", .out = "syntax error, unexpected end of file, expecting MINUS or NAME or VALUE or NUMBER", .ret = -1 },
+               { .in = "%{literal('\\xgg')}", .out = "expecting MINUS or NAME or VALUE or NUMBER", .ret = -1 },
                { .in = "\\999", .out = "\\999", .ret = 0 },
-               { .in = "%{literal('\\999')}", .out = "syntax error, unexpected end of file, expecting MINUS or NAME or VALUE or NUMBER", .ret = -1 },
+               { .in = "%{literal('\\999')}", .out = "expecting MINUS or NAME or VALUE or NUMBER", .ret = -1 },
                /* List test */
                { .in = "%{literal('one\ttwo\tthree') | list}", .out="'one,two,three'", .ret = 0 },
                /* Escape escape */