From: Aki Tuomi Date: Thu, 6 Feb 2025 07:43:23 +0000 (+0200) Subject: lib-var-expand: test-var-expand - Fix expected message to match on older bison X-Git-Tag: 2.4.1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cab50d3e72804482c727f624e9a23fc92095346;p=thirdparty%2Fdovecot%2Fcore.git lib-var-expand: test-var-expand - Fix expected message to match on older bison Bison 3.0.4 produces different error --- diff --git a/src/lib-var-expand/test-var-expand.c b/src/lib-var-expand/test-var-expand.c index 6d6a666826..09d589be07 100644 --- a/src/lib-var-expand/test-var-expand.c +++ b/src/lib-var-expand/test-var-expand.c @@ -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 */