]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: Fix unit test failure with some bison versions
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 18 Nov 2025 13:18:56 +0000 (15:18 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 18 Nov 2025 14:45:36 +0000 (14:45 +0000)
Some versions start the error with "syntax error, unexpected $end".
Broken by fcedf9dfe8db1fa0952df47ddfc26d930188863a

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

index e2c4b5a0e6f1dd4980810686f5b8a88655a7b1e4..b395b770ba06549d0200fd80eb021d6c78ca36a3 100644 (file)
@@ -101,8 +101,7 @@ static void test_var_expand_builtin_filters(void) {
                { .in = "%{}", .out = "", .ret = 0 },
                {
                        .in = "%{",
-                       .out = "syntax error, unexpected end of file, expecting "
-                              "CCBRACE or PIPE or NAME",
+                       .out = "expecting CCBRACE or PIPE or NAME",
                        .ret = -1
                },
                { .in = "hello%{}world", .out = "helloworld", .ret = 0 },