[PATCH 3/3] test: test insert --must-index

Peter Wang novalazy at gmail.com
Sat Jul 20 17:07:34 PDT 2013


Test the new insert --must-index option.
---
 test/insert | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/insert b/test/insert
index 021edb6..938753e 100755
--- a/test/insert
+++ b/test/insert
@@ -26,6 +26,9 @@ test_expect_code 1 "Insert zero-length file" \
 test_expect_code 0 "Insert non-message" \
     "echo bad_message | notmuch insert"
 
+test_expect_code 2 "Insert non-message, --must-index" \
+    "echo bad_message | notmuch insert --must-index"
+
 test_begin_subtest "Database empty so far"
 test_expect_equal "0" "`notmuch count --output=messages '*'`"
 
-- 
1.7.12.1



More information about the notmuch mailing list