From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YNMSD+neK2F7RAEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 21:24:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mG13CuneK2GjAwAAB5/wlQ (envelope-from ) for ; Sun, 29 Aug 2021 19:24:25 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9A25A19228 for ; Sun, 29 Aug 2021 21:24:21 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AF0042031B; Sun, 29 Aug 2021 15:24:01 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id D9ECF20010 for ; Sun, 29 Aug 2021 15:23:55 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id C4EB55FD5C; Sun, 29 Aug 2021 15:23:55 -0400 (EDT) Received: (nullmailer pid 4192491 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 5/9] test/emacs: test for notmuch-search with nonexistent CWD Date: Sun, 29 Aug 2021 12:23:31 -0700 Message-Id: <20210829192335.4192305-6-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: MBAGVZIPBF3S4ZC6BMK5K2B2UNGLVUTS X-Message-ID-Hash: MBAGVZIPBF3S4ZC6BMK5K2B2UNGLVUTS 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=1630265061; 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=J2D6WlxyKmrmcLvmZ3wsaSZ+PP+9UtWFzLXP+BtDc4s=; b=auT+/OBAlMVZcfXR6z+eJ1tOK5yb53i/EeEAyfH/nym6G+I1ZExJFeC4CzeNm2Pwaa5jZA 6yzlYF1vtUWnY4cAP7e3Ow/OOdIsWaPvoN0lgn+FI3/SZn88Vb0Pctn6xwp32pwA7rXbN6 HBEfZ/0tmJSWic4Dp47wcNsgj0CgjmZY2OzbJctCAAuV6GwCM4J4idUIi/GdPcvy3ncuxO md4T4Kktc+N1HiLmNfZD24LMXoPAPTVuoPtZcbmHtX6UjeVfArOj1I8ouBuCdmUSRP0d97 CBg21LN6qV03hM7lP2i1QFx7wIYqDx+I8uHpyQCwBOx27fSIQvugoSldwO8W4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630265061; a=rsa-sha256; cv=none; b=BIOB6XT/hFmm2in5rFbtgOVvopbqjnh6MqBFL0IOJkEnJHkPDK2/XlBbPf+/cJsXEaLP2e ncWwgxPaxiYWOwaCRyXiC2QyyKzae5l//ZT780oKRim0jJkOzmevBW8ybsed9YsIekZJN2 vgUKK6l8AI7R7f9z2tE8fqfASdQBC2b4GcF9/TtEVYj6BAIPV4Z+Mr/fRO39zecPYI+dPH 6x5LIC/uaJVkDondi0NXsgTyk5xeNqTbmcdD/Q4bktVUhELoSUNiEyjIgE+X3upbKRcOIS 1Fbu7XKnc5zxdqhvcHoZ5Zon6zORglc65fQ80NEQM7C41kZyFXhaO9YsFkEwfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9A25A19228 X-Spam-Score: -1.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: lYLUb1h8FffC (At least) notmuch-start-notmuch needs to be updated to set a safe working directory. --- test/T310-emacs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh index d69d94a3..3434fd0b 100755 --- a/test/T310-emacs.sh +++ b/test/T310-emacs.sh @@ -1154,4 +1154,11 @@ This text added by the hook. EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "notmuch-search with nonexistent CWD" +test_subtest_known_broken +test_emacs '(test-log-error + (let ((default-directory "/nonexistent")) + (notmuch-search "*")))' +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done -- 2.33.0