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 A15936DE0F86 for ; Mon, 25 Feb 2019 18:06:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 dQdPOOC-pdZA for ; Mon, 25 Feb 2019 18:06:39 -0800 (PST) Received: from wp260.webpack.hosteurope.de (wp260.webpack.hosteurope.de [80.237.133.29]) by arlo.cworth.org (Postfix) with ESMTPS id 6A1A56DE0EC5 for ; Mon, 25 Feb 2019 18:06:39 -0800 (PST) Received: from p200300cb274ef80165e9a570412c9b8e.dip0.t-ipconnect.de ([2003:cb:274e:f801:65e9:a570:412c:9b8e] helo=deneb.skynet.aixah.de); authenticated by wp260.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1gyS8h-0000GK-GR; Tue, 26 Feb 2019 03:06:35 +0100 Received: by deneb.skynet.aixah.de (Postfix, from userid 1000) id 62F57C043A; Tue, 26 Feb 2019 03:06:34 +0100 (CET) From: Luis Ressel To: notmuch@notmuchmail.org Subject: [PATCH] test: Ignore subtly different behaviour of the musl libc Date: Tue, 26 Feb 2019 03:06:29 +0100 Message-Id: <20190226020629.5273-1-aranea@aixah.de> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;aranea@aixah.de;1551146799;ef38b39d; X-HE-SMSGID: 1gyS8h-0000GK-GR 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: Tue, 26 Feb 2019 02:06:40 -0000 --- test/T030-config.sh | 6 ++++-- test/T650-regexp-query.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/T030-config.sh b/test/T030-config.sh index f36695c6..9a384f1e 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -43,7 +43,7 @@ notmuch config set foo.nonexistent test_expect_equal "$(notmuch config get foo.nonexistent)" "" test_begin_subtest "List all items" -notmuch config list 2>&1 | notmuch_config_sanitize > OUTPUT +notmuch config list 2>OUTPUT-ERR | notmuch_config_sanitize > OUTPUT if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then config_gpg_path="crypto.gpg_path=gpg @@ -51,7 +51,6 @@ if [ "${NOTMUCH_GMIME_MAJOR}" -lt 3 ]; then fi cat < EXPECTED -Error opening database at MAIL_DIR/.notmuch: No such file or directory database.path=MAIL_DIR user.name=Notmuch Test Suite user.primary_email=test_suite@notmuchmail.org @@ -68,6 +67,9 @@ built_with.retry_lock=something EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "List all items (stderr output)" +test_expect_equal "$(notmuch_config_sanitize OUTPUT 2>&1 +notmuch search 'from:/unbalanced[/' 2>&1 | sed -e 's/^\(A Xapian[^:]*:\).*/\1/' > OUTPUT cat < EXPECTED notmuch search: A Xapian exception occurred -A Xapian exception occurred parsing query: Invalid regular expression +A Xapian exception occurred parsing query: Query string was: from:/unbalanced[/ EOF test_expect_equal_file EXPECTED OUTPUT -- 2.19.2