mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: add known broken test for long directory bug
In [1] Gregor Zattler explained the results of his hard work tracking down a bug in notmuch with long directories. This test duplicates the bug. [1]: id:20210317194728.GB5561@no.workgroup
This commit is contained in:
parent
6967dcbb02
commit
dcd4df2cc0
1 changed files with 14 additions and 0 deletions
|
@ -339,6 +339,20 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1"
|
|||
|
||||
notmuch config set new.tags $OLDCONFIG
|
||||
|
||||
test_begin_subtest "Long directory names don't cause rescan"
|
||||
test_subtest_known_broken
|
||||
printf -v name 'z%.0s' {1..234}
|
||||
generate_message [dir]=$name
|
||||
NOTMUCH_NEW > OUTPUT
|
||||
notmuch new >> OUTPUT
|
||||
rm -r ${MAIL_DIR}/${name}
|
||||
notmuch new >> OUTPUT
|
||||
cat <<EOF > EXPECTED
|
||||
Added 1 new message to the database.
|
||||
No new mail.
|
||||
No new mail. Removed 1 message.
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_begin_subtest "Xapian exception: read only files"
|
||||
chmod u-w ${MAIL_DIR}/.notmuch/xapian/*.*
|
||||
|
|
Loading…
Reference in a new issue