X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT050-new.sh;h=09c2bfc65173ddd4641ed6648d17c227151b1e60;hb=09f2ad8e853375930c63bca847f623bc722b9cc0;hp=240c181064ca4bc9006262aaf776430b90f3c2d9;hpb=f4dc32e71b6fbaca933e0c7edd6d08b65feed0ec;p=notmuch diff --git a/test/T050-new.sh b/test/T050-new.sh index 240c1810..09c2bfc6 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -383,6 +383,20 @@ No new mail. Removed 1 message. EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Long file names have reasonable diagnostics" +printf -v name 'f%.0s' {1..234} +generate_message "[filename]=$name" +notmuch new 2>&1 | notmuch_dir_sanitize >OUTPUT +rm ${MAIL_DIR}/${name} +cat < EXPECTED +Note: Ignoring non-indexable path: MAIL_DIR/$name +add_file: Path supplied is illegal for this function +filename too long for file-direntry term: MAIL_DIR/$name +Processed 1 file in almost no time. +No new mail. +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Xapian exception: read only files" test_subtest_broken_for_root chmod u-w ${MAIL_DIR}/.notmuch/xapian/*.*