[PATCH 4/6] test: add known broken test for index.check_mbox=false

Subject: [PATCH 4/6] test: add known broken test for index.check_mbox=false

Date: Sat, 5 Feb 2022 15:52:13 -0400

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This message should only fail to parse because it looks (rightly or
wrongly) like a 2 message mbox.
---
 test/T050-new.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/T050-new.sh b/test/T050-new.sh
index 9ef24f18..e779bd2f 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -463,4 +463,13 @@ notmuch new
 output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net)
 test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net"
 
+test_begin_subtest "id:87k0e9o0pu.fsf@tethera.net is indexed with index.check_mbox=false"
+test_subtest_known_broken
+cp notmuch-config notmuch-config.old
+notmuch config set index.check_mbox false
+notmuch new
+cp notmuch-config.old notmuch-config
+output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net)
+test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net"
+
 test_done
-- 
2.34.1

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

Thread: