]> git.notmuchmail.org Git - notmuch/commitdiff
test: known broken test file descriptor leak in gzip file open
authorDavid Bremner <david@tethera.net>
Sun, 22 Sep 2019 22:44:00 +0000 (19:44 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 12 Oct 2019 11:43:39 +0000 (08:43 -0300)
James Troup reported this bug in id:87pnjsf9q5.fsf@canonical.com

test/T750-gzip.sh

index 5b678fa1eda29960473549b9223067ba39c7c388..f4e0c42a8e8ec9f273326eac630628ad9d44629d 100755 (executable)
@@ -167,4 +167,12 @@ This is just a test message (#7)
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
 EOF
 test_expect_equal_file EXPECTED OUTPUT
 
+# there are more than 200 messages in this corpus
+add_email_corpus lkml
+test_begin_subtest "new doesn't run out of file descriptors with many gzipped files"
+test_subtest_known_broken
+ulimit -n 200
+gzip --recursive ${MAIL_DIR}
+test_expect_success "notmuch new"
+
 test_done
 test_done