[PATCH 1/3] test/emacs: add known broken test for viewing raw duplicate

Subject:[PATCH 1/3] test/emacs: add known broken test for viewing raw duplicate

Date:Thu, 4 Aug 2022 08:48:06 -0300

To:David Bremner ,notmuch@notmuchmail.org

Cc:

From:David Bremner


This duplicates one of the bugs reported by Gregor in [1].

[1]: id:87edxw8jp4.fsf@no.workgroup
---
 test/T450-emacs-show.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh
index ab611d56..83e902f1 100755
--- a/test/T450-emacs-show.sh
+++ b/test/T450-emacs-show.sh
@@ -381,4 +381,15 @@ test_emacs "(notmuch-show \"id:${ID3}\")
 	   (test-visible-output \"OUTPUT\")"
 test_expect_equal_file_nonempty $EXPECTED/notmuch-show-duplicate-4 OUTPUT
 
+FILE4=$(notmuch search --output=files --duplicate=4 "id:${ID3}")
+test_begin_subtest "duplicate=4, raw"
+test_subtest_known_broken
+test_emacs "(notmuch-show \"id:${ID3}\")
+	   (notmuch-show-choose-duplicate 4)
+	   (notmuch-show-view-raw-message)
+	   (test-visible-output \"OUTPUT\")"
+subject4=$(grep '^Subject:' $FILE4)
+subject=$(grep '^Subject:' OUTPUT)
+test_expect_equal "$subject4" "$subject"
+
 test_done
-- 
2.35.2

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: