summaryrefslogtreecommitdiff
path: root/mail/nmh-devel/files/patch-test_post_test-post-basic
diff options
context:
space:
mode:
Diffstat (limited to 'mail/nmh-devel/files/patch-test_post_test-post-basic')
-rw-r--r--mail/nmh-devel/files/patch-test_post_test-post-basic33
1 files changed, 12 insertions, 21 deletions
diff --git a/mail/nmh-devel/files/patch-test_post_test-post-basic b/mail/nmh-devel/files/patch-test_post_test-post-basic
index 5ed616ed67ce..d8814b638c51 100644
--- a/mail/nmh-devel/files/patch-test_post_test-post-basic
+++ b/mail/nmh-devel/files/patch-test_post_test-post-basic
@@ -1,6 +1,6 @@
---- test/post/test-post-basic.orig 2023-12-04 03:00:44 UTC
-+++ test/post/test-post-basic
-@@ -143,13 +143,12 @@ check "${testname}.err" "${testname}.err.expected"
+--- test/post/test-post-basic.orig 2024-07-06 07:47:54.000000000 -0700
++++ test/post/test-post-basic 2024-07-18 14:09:44.765195000 -0700
+@@ -143,13 +143,12 @@
set +e
check "${testname}.err" "${testname}.err.expected"
@@ -16,23 +16,13 @@
cat > "${testname}.expected" <<EOF
EHLO nosuchhost.example.com
MAIL FROM:<nobody@example.com> BODY=8BITMIME
-@@ -168,8 +167,9 @@ EOF
+@@ -203,46 +202,7 @@
.
QUIT
EOF
--SMTPUTF8=1 test_post "${testname}.actual" "${testname}.expected"
-+test_post "${testname}.actual" "${testname}.expected"
+-(SMTPUTF8=1; export SMTPUTF8
+-test_post "${testname}.actual" "${testname}.expected")
-+
- #
- # 8-bit with 8BITMIME support, inferred from content
- #
-@@ -202,43 +202,7 @@ EOF
- .
- QUIT
- EOF
--SMTPUTF8=1 test_post "${testname}.actual" "${testname}.expected"
--
-#
-# binary content containing a NUL
-#
@@ -46,7 +36,7 @@
-MIME-Version: 1.0
-Content-Type: application/octet-stream
-Content-Transfer-Encoding: binary
--
+
-This is a test, with a NUL character: " "
-"
-
@@ -67,8 +57,9 @@
-.
-QUIT
-"
--SMTPUTF8=1 test_post "${testname}.actual" "${testname}.expected"
-+test_post "${testname}.actual" "${testname}.expected"
-
-
+-(SMTPUTF8=1; export SMTPUTF8
+-test_post "${testname}.actual" "${testname}.expected")
+-
+-
finish_test
+ exit ${failed:-0}