summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2020-05-08 18:51:53 -0700
committerGaute Hope <eg@gaute.vetsj.com>2020-05-12 10:13:06 +0200
commit8db62e573941d25f6c99e84bd7c78f3b907b804d (patch)
treefd54bc4d47111e603a5b188a0d4938bf30e85e37
parente3b16971dda7071bab4cf06bccb69286b38c83b3 (diff)
End test email message bodies with a trailing newline
Test regressed under gmime 3.2.3, because of the change in jstedfast/gmime@2dd1be81555d787ff1ff03b11e5cb4b9e81630d6 A trailing newline was added to the text/plain message body in the test, causing the round-trip comparison to fail. Fixes: #676
-rw-r--r--tests/test_composed_message.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_composed_message.cc b/tests/test_composed_message.cc
index 792d4d0..4648639 100644
--- a/tests/test_composed_message.cc
+++ b/tests/test_composed_message.cc
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_SUITE(Composing)
ComposeMessage * c = new ComposeMessage ();
- ustring bdy = "This is test: æøå.\n > testing\ntesting\n...";
+ ustring bdy = "This is test: æøå.\n > testing\ntesting\n...\n";
LOG (trace) << "cm: writing utf-8 text to message body: " << bdy;
c->body << bdy;
@@ -62,7 +62,7 @@ BOOST_AUTO_TEST_SUITE(Composing)
ComposeMessage * c = new ComposeMessage ();
- ustring bdy = "This is test: æøå.\n > testing\ntesting\n...";
+ ustring bdy = "This is test: æøå.\n > testing\ntesting\n...\n";
LOG (trace) << "cm: writing utf-8 text to message body: " << bdy;
c->body << bdy;
@@ -193,7 +193,7 @@ BOOST_AUTO_TEST_SUITE(Composing)
ComposeMessage * c = new ComposeMessage ();
- ustring bdy = "This is test: æøå.\n > testing\ntesting\n...";
+ ustring bdy = "This is test: æøå.\n > testing\ntesting\n...\n";
LOG (trace) << "cm: writing utf-8 text to message body: " << bdy;
c->body << bdy;