From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9BB4D6DE028C for ; Sun, 22 Sep 2019 15:46:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.056 X-Spam-Level: X-Spam-Status: No, score=-0.056 tagged_above=-999 required=5 tests=[AWL=-0.055, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j_DQVfPrZHIF for ; Sun, 22 Sep 2019 15:46:18 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 6B0096DE0232 for ; Sun, 22 Sep 2019 15:46:18 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1iCAcR-000272-3z; Sun, 22 Sep 2019 18:46:15 -0400 Received: (nullmailer pid 5846 invoked by uid 1000); Sun, 22 Sep 2019 22:44:07 -0000 From: David Bremner To: James Troup , notmuch@notmuchmail.org Subject: [PATCH 1/2] test: known broken test file descriptor leak in gzip file open Date: Sun, 22 Sep 2019 19:44:00 -0300 Message-Id: <20190922224401.5716-2-david@tethera.net> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190922224401.5716-1-david@tethera.net> References: <87pnjsf9q5.fsf@canonical.com> <20190922224401.5716-1-david@tethera.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Sep 2019 22:46:19 -0000 James Troup reported this bug in id:87pnjsf9q5.fsf@canonical.com --- test/T750-gzip.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/T750-gzip.sh b/test/T750-gzip.sh index 5b678fa1..f4e0c42a 100755 --- a/test/T750-gzip.sh +++ b/test/T750-gzip.sh @@ -167,4 +167,12 @@ This is just a test message (#7) 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 -- 2.23.0