diff options
| author | David Bremner <david@tethera.net> | 2021-04-24 20:02:43 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-23 08:31:36 -0300 |
| commit | f44c83c083faa152043d70bfcb9f70b4825022f2 (patch) | |
| tree | c5e4e222d551537f7af57e7479ee7799ba7e1fc1 | |
| parent | 8cb30b08d8c9a650b8b5a98f4547b1b48e3f9d03 (diff) | |
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.
| -rwxr-xr-x | test/T700-reindex.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
