mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
test: add regression test for large number of deletions
Prior to 9ad19e4454
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.
This commit is contained in:
parent
8cb30b08d8
commit
f44c83c083
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue