]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
test: fix a test regarding RFC 5321
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 6 Jun 2024 08:16:34 +0000 (10:16 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 6 Jun 2024 08:16:34 +0000 (10:16 +0200)
tests/mlmmj.c

index c48cacf63f98d89288fc23ceeeafaefde315b297..655b76e94ebb599f99f69db20a73e6c03540f452 100644 (file)
@@ -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 .)");
        }