mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-03-18 21:45:17 +01:00
test: known broken test for reindex tag preservation
In id:1588595993-ner-8.651@TPL520 Franz Fellner reported that tags starting with 'attachment' are removed by 'notmuch reindex'. This is probably related to the use of STRNCMP_LITERAL in _notmuch_message_remove_indexed_terms.
This commit is contained in:
parent
9055dfdae4
commit
accfee5c6e
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,15 @@ notmuch reindex '*'
|
||||||
notmuch dump > OUTPUT
|
notmuch dump > OUTPUT
|
||||||
test_expect_equal_file initial-dump OUTPUT
|
test_expect_equal_file initial-dump OUTPUT
|
||||||
|
|
||||||
|
test_begin_subtest 'reindex preserves tags with special prefixes'
|
||||||
|
test_subtest_known_broken
|
||||||
|
notmuch tag +attachment2 +encrypted2 +signed2 '*'
|
||||||
|
notmuch dump > EXPECTED
|
||||||
|
notmuch reindex '*'
|
||||||
|
notmuch dump > OUTPUT
|
||||||
|
notmuch tag -attachment2 -encrypted2 -signed2 '*'
|
||||||
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_begin_subtest 'reindex moves a message between threads'
|
test_begin_subtest 'reindex moves a message between threads'
|
||||||
notmuch search --output=threads id:87iqd9rn3l.fsf@vertex.dottedmag > EXPECTED
|
notmuch search --output=threads id:87iqd9rn3l.fsf@vertex.dottedmag > EXPECTED
|
||||||
# re-parent
|
# re-parent
|
||||||
|
|
Loading…
Add table
Reference in a new issue