From f44c83c083faa152043d70bfcb9f70b4825022f2 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 24 Apr 2021 20:02:43 -0300 Subject: [PATCH] test: add regression test for large number of deletions Prior to 9ad19e4454f there was an unhandled Xapian exception when reindexing after a large number of deletes. This test was used for bisection, and will subsequently serve as a regression test. --- test/T700-reindex.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T700-reindex.sh b/test/T700-reindex.sh index 52bba4d3..bac43dc5 100755 --- a/test/T700-reindex.sh +++ b/test/T700-reindex.sh @@ -83,4 +83,11 @@ notmuch reindex '*' notmuch search '*' | notmuch_search_sanitize > OUTPUT test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "reindex after removing corpus" +tar cf backup.tar mail/cur +find mail/cur -type f -delete +test_expect_success "notmuch reindex '*'" +tar xf backup.tar + test_done -- 2.43.0