From: Baptiste Daroussin Date: Thu, 6 Jun 2024 08:16:34 +0000 (+0200) Subject: test: fix a test regarding RFC 5321 X-Git-Tag: RELEASE_1_4_6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bc24b2516ab60a3459de7ab2eb29c617afc5400;p=thirdparty%2Fmlmmj.git test: fix a test regarding RFC 5321 --- diff --git a/tests/mlmmj.c b/tests/mlmmj.c index c48cacf6..655b76e9 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -611,14 +611,14 @@ ATF_TC_BODY(write_mailbody, tc) } /* New line starting with a dot */ - atf_utils_create_file("myemailbody.txt", "line\n..no"); + atf_utils_create_file("myemailbody.txt", "line\n.no"); fp = fopen("myemailbody.txt", "r"); ATF_REQUIRE(fp != NULL); fd = open("out.txt", O_CREAT|O_TRUNC|O_WRONLY, 0644); write_mailbody(fd, fp, "test@plop.meh"); close(fd); fclose(fp); - if (!atf_utils_compare_file("out.txt", "line\r\n.no")) { + if (!atf_utils_compare_file("out.txt", "line\r\n..no")) { atf_utils_cat_file("out.txt", ">"); atf_tc_fail("Unexpected output (single new line with a .)"); }