From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qMCjOcreK2GTRQEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 21:23:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GJ0zNcreK2E/QAAA1q6Kng (envelope-from ) for ; Sun, 29 Aug 2021 19:23:54 +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) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9CF3719211 for ; Sun, 29 Aug 2021 21:23:54 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2AB6C1FB12; Sun, 29 Aug 2021 15:23:47 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4F7D01FA86 for ; Sun, 29 Aug 2021 15:23:44 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 397725FD5C; Sun, 29 Aug 2021 15:23:44 -0400 (EDT) Received: (nullmailer pid 4192504 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 9/9] test/emacs: tests for notmuch-{tree,unthreaded} with bad CWD Date: Sun, 29 Aug 2021 12:23:35 -0700 Message-Id: <20210829192335.4192305-10-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: RVMWJWPZIWUKTWAHSCWOGAJ3V7YFLDSK X-Message-ID-Hash: RVMWJWPZIWUKTWAHSCWOGAJ3V7YFLDSK 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=1630265034; 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=g6G1bJ8/hyzX+2s5Ocq6c/eLOPoW803BL6gdKh4d4uw=; b=SPb06lErxWI/iw72gW2HQ3DOl53zHIoTHV+l275xOP7/ZowbAkteXQ9JWiUTKGx6k22GH3 qp9RKciOhi0JuhvKHJxcxOjy0LPyb+V0W9YCasQ8VHjVVvrKz7/wQ7eSROZEq19uAh8Pwt XNardx3XGaUkmVKfbm2NryFLKCRkHFsL+Wd5ejcxPkKh+n1QPP4csCZJCKmUb2pCzy6i2q yDO2TDVqpVWcMCSn7wpiWL98yqaR/zHqJUiqFNRpMG9J1sXCMs5ABoJvatAQxfjK1AdlwZ u8KBRWjHUCsWNrEYY/fxKBrhZRvwHuBVX0leEpq9X/UI8uNes44ERlGzAfcMNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630265034; a=rsa-sha256; cv=none; b=gEZADIv/vBUjmjq5GDQP6WGLsNhgzbUx4PpMMbg/cQZjrB1bIje6X2Y9eMq783Xp3J5Yt4 X9pxXjZGHcOzeHc5ixbXVEcrQEsaoG6/4Rsb4CII5IPAzwQi9iTmgvA5k3UmD3OSMvYlae GfNBi1OuiaB7lfqUCZpb09uPnnxH8bqm+O25Uw2k4KeSuGdtb2pCBhMor3p4PyBrwO48rg yOcqi7xKEbT+g44qyL/tfOmgxjFG559nbJaezNQSPZrMHlbQrovFmlnOailWct+3ytdm7m GJWnLZg6/ky3SrZorUq4DRGHiE2WczlpdTj7z+sORaE2z6C0fYmYdtqVjf7Xwg== 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: 9CF3719211 X-Spam-Score: -0.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: th9g4zcsAzSp These work thanks to the previous wrapping of process creation primitives. --- test/T460-emacs-tree.sh | 6 ++++++ test/T465-emacs-unthreaded.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh index 405d7ee7..aaece220 100755 --- a/test/T460-emacs-tree.sh +++ b/test/T460-emacs-tree.sh @@ -179,4 +179,10 @@ output=$(test_emacs '(notmuch-tree "tag:inbox") (notmuch-show-stash-message-id)') test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\"" +test_begin_subtest "notmuch-tree with nonexistent CWD" +test_emacs '(test-log-error + (let ((default-directory "/nonexistent")) + (notmuch-tree "*")))' +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done diff --git a/test/T465-emacs-unthreaded.sh b/test/T465-emacs-unthreaded.sh index f9a09426..830cefaf 100755 --- a/test/T465-emacs-unthreaded.sh +++ b/test/T465-emacs-unthreaded.sh @@ -34,4 +34,10 @@ output=$(test_emacs '(let ((max-lisp-eval-depth 10)) "SUCCESS")' ) test_expect_equal "$output" '"SUCCESS"' +test_begin_subtest "notmuch-unthreaded with nonexistent CWD" +test_emacs '(test-log-error + (let ((default-directory "/nonexistent")) + (notmuch-unthreaded "*")))' +test_expect_equal "$(cat MESSAGES)" "COMPLETE" + test_done -- 2.33.0