]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: test-message-header-parser - Add NAME10, 100, 1000 macros for testing
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 2 Sep 2021 13:46:19 +0000 (16:46 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 27 Sep 2021 07:01:18 +0000 (07:01 +0000)
src/lib-mail/test-message-header-parser.c

index a9fea89a5c3e537ee18d95c91fe303c8009f3c9a..025868a63cf1e667d9d753d6604dfe6efe1b5e89 100644 (file)
@@ -235,10 +235,16 @@ test_message_header_parser_long_lines_str(const char *str,
        i_stream_unref(&input);
 }
 
+#define NAME10 "1234567890"
+#define NAME100 NAME10 NAME10 NAME10 NAME10 NAME10 \
+               NAME10 NAME10 NAME10 NAME10 NAME10
+#define NAME1000 NAME100 NAME100 NAME100 NAME100 NAME100 \
+                NAME100 NAME100 NAME100 NAME100 NAME100
+
 static void test_message_header_parser_long_lines(void)
 {
-       static const char *lf_str = "1234567890: 345\n\n";
-       static const char *crlf_str = "1234567890: 345\r\n\r\n";
+       static const char *lf_str = NAME10": 345\n\n";
+       static const char *crlf_str = NAME10": 345\r\n\r\n";
        struct message_size hdr_size, hdr_size2;
        size_t i, len;