From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wHRLIO/eK2FQRgEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 21:24:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IBYIHO/eK2GvPgAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 19:24:31 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B76116D5A for ; Sun, 29 Aug 2021 21:24:31 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CA8A2204FC; Sun, 29 Aug 2021 15:24:05 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id ACA7120010 for ; Sun, 29 Aug 2021 15:24:00 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7E1825FD5C; Sun, 29 Aug 2021 15:24:00 -0400 (EDT) Received: (nullmailer pid 4192482 invoked by uid 1000); Sun, 29 Aug 2021 19:23:39 -0000 From: David Bremner To: David Bremner , Tomi Ollila , Matt Armstrong , notmuch@notmuchmail.org Subject: [PATCH 2/9] test/emacs: run notmuch-hello with a nonexisting default dir Date: Sun, 29 Aug 2021 12:23:28 -0700 Message-Id: <20210829192335.4192305-3-david@tethera.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210829192335.4192305-1-david@tethera.net> References: <87tvgqzq1o.fsf@tethera.net> <20210829192335.4192305-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: VRIIBPN4ULI4DJMDO4E77IKGDEJZKAYY X-Message-ID-Hash: VRIIBPN4ULI4DJMDO4E77IKGDEJZKAYY X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630265071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1Svqmpini3gxz9XMlOtS1WAlAz0zN+gYX52rdyUQKeQ=; b=WuDLEbwwcOrsxq2rZmNiBbPBGe9EIZFssCcZic5HrmMpE0V2UUK8R+5qlHMZyuunnP2W1I nhmm7XKAFCpAM9SKTE7WI2d8yiTDvk1Q8jmDKNxO6SOb5DOj2HdPzM4MO7piQYyJ8Wvf6x qIRX3aT637+s2NHKjMKz5EVrkM4sI4BZhFuiYP5kTgGpK8G8L9SzHvOBVBgl1unhHjUJHD RDgXMnVDA3uGmwJ2P8cXPMTUoGvGN2ekaqFigvkUdrDKcEJ+8fiZx38NDZ7/t1B5AwgPrp qsidE89OfXaq4PQ/QsmnjT0fKMdgGXPcm894lfDopgwnr/caf7Kvx9JyuxlMSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630265071; a=rsa-sha256; cv=none; b=VzgbtgyGSEc9wA6Sz/Qts8sHEkwUSovZsgd4D4d3mu+ecFQZzvN2U9W6zmi1Mcd6rXCgcU kf5GmpmQqSZ5pp+dQOxFrsRBIaSzOi3EE0CS7/s6i+31iskKA0sHlT6cykuko4+4EeeYxF xBVh05A8hP6ajtWbYw7g6qowKD4WlOI52q2UbyrqPsmbCJ5jkq5hJQT9sQujfEtA3bKzTY bt76orSanO34X6LBLFtc90B4OrRmrN4P4VMtD5FKFSE7V5ECazdhw8q7xc6rPAle+tzgWX 3G/6OIFFbVFCX7Zf49xP1dLVgEcalge+VFDohgbOLhzV7KxsJ0M6cMwkS6oMxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3B76116D5A X-Spam-Score: -0.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: bVaWH5xrp14E This replicates the problem reported in Debian bug #922536. --- test/T440-emacs-hello.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh index bafccd1f..9d1e5a9c 100755 --- a/test/T440-emacs-hello.sh +++ b/test/T440-emacs-hello.sh @@ -68,4 +68,13 @@ test_emacs '(notmuch-hello) notmuch tag -$tag '*' test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT +test_begin_subtest "notmuch-hello with nonexistent CWD" +test_subtest_known_broken +test_emacs ' + (notmuch-hello) + (test-log-error + (let ((default-directory "/nonexistent")) + (notmuch-hello-update)))' +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done -- 2.33.0