unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/3] test: test one character long directory names at top level
@ 2016-04-10 19:43 Jani Nikula
  2016-04-10 19:43 ` [PATCH 2/3] lib: fix handling of " Jani Nikula
  2016-04-10 19:43 ` [PATCH 3/3] lib: clean up _notmuch_database_split_path Jani Nikula
  0 siblings, 2 replies; 5+ messages in thread
From: Jani Nikula @ 2016-04-10 19:43 UTC (permalink / raw)
  To: notmuch

Yes, it's broken. Reported by h01ger on IRC.
---
 test/T050-new.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/test/T050-new.sh b/test/T050-new.sh
index 93a6fa94ae7c..174715aa2781 100755
--- a/test/T050-new.sh
+++ b/test/T050-new.sh
@@ -169,6 +169,20 @@ output=$(NOTMUCH_NEW --debug)
 test_expect_equal "$output" "(D) add_files, pass 3: queuing leftover directory ${MAIL_DIR}/two for deletion from database
 No new mail. Removed 3 messages."
 
+test_begin_subtest "One character directory at top level"
+test_subtest_known_broken
+
+generate_message [dir]=A
+generate_message [dir]=A/B
+generate_message [dir]=A/B/C
+
+output=$(NOTMUCH_NEW --debug)
+test_expect_equal "$output" "Added 3 new messages to the database."
+
+# clean up after the broken test to not mess up other tests
+rm -rf "${MAIL_DIR}"/A
+NOTMUCH_NEW 2>&1 > /dev/null
+
 test_begin_subtest "Support single-message mbox"
 cat > "${MAIL_DIR}"/mbox_file1 <<EOF
 From test_suite@notmuchmail.org Fri Jan  5 15:43:57 2001
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-12 23:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-10 19:43 [PATCH 1/3] test: test one character long directory names at top level Jani Nikula
2016-04-10 19:43 ` [PATCH 2/3] lib: fix handling of " Jani Nikula
2016-04-11  6:44   ` Tomi Ollila
2016-04-10 19:43 ` [PATCH 3/3] lib: clean up _notmuch_database_split_path Jani Nikula
2016-04-12 23:51   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).