From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJACIL+o62JEBgEAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 13:08:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MFkVIL+o62KLTgAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 13:08:47 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 3ADBA390A7 for ; Thu, 4 Aug 2022 13:08:47 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6765C5F383; Thu, 4 Aug 2022 11:08:44 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 5E4F15F37B for ; Thu, 4 Aug 2022 11:08:41 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 236D95FBC0; Thu, 4 Aug 2022 07:08:40 -0400 (EDT) Received: (nullmailer pid 322168 invoked by uid 1000); Thu, 04 Aug 2022 11:08:39 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename Date: Thu, 4 Aug 2022 08:08:32 -0300 Message-Id: <20220804110833.322155-1-david@tethera.net> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 Message-ID-Hash: TF6RACZMHUMHIYYLGV7U467YBNKIR5E4 X-Message-ID-Hash: TF6RACZMHUMHIYYLGV7U467YBNKIR5E4 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659611327; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=UjmmACIuOaJ+x+ycd0tduX/171W9UwC6qMPfchwEMuo=; b=s8AFLrl8Aq5tiI+ymPNYTdem4nt5SjWyzZRQ1ksLmV2d5+8sKZnLbbEv+vasp7hO1Vs7Z6 siVXmm6+tAFmNJDMNw5CcI1hsMasHCqjQDtZ0qAKOiWaMGgYO4mAe+QW/V5Tp7r8Y9M7cS 53JCJ/spN25ktYAL97hakbYDK8V1DVPzB8HPDpFox/sTLx3xiYOyBdf/Bpi7tYdsUR6+z8 w5GQbauaUSQQqSlL5Oz2Kw6AhGOWhjr1MUf5JM20KuznKbU0C/V6ufALdXE/G16r+35Qgp bqogB7jRuW/Lo2TKbsfVbQjvGJUpq0nUy58DRUPnO27WGhlPGx21m94Jw0maaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659611327; a=rsa-sha256; cv=none; b=jh1flhfjO4s8DnxI3URk7Y7qI5xU1Oq9xKHMCExo6PRgCHSAdn/v/33lmWtuWvo3kDib4J kb8XpFp2g1AfP/5LDqRCoKTPymxiKbZgKBwGZkCeLiID5HSLyMH+Q/R6SioZ0/cwgdi72+ gDC9gplK3l12kXY6YyJuhDf7GWB+c3kldg/0RCNLM1M0JV5+GHTZhHOXPjN3okfo2yy1oP xylicx42LCRHzlsBYo/hrE9/2LFBxQB8nwqwz3FwpUtBjBw1xOGf9aors/jpunCS2ehkxI Zvs8nG6DLvBQgxNsWlzrN84hBPmY14IU4m7rJJ2MexuQcLf/8+Z2HoReREIM0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.09 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3ADBA390A7 X-Spam-Score: -2.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: /8q6/ddb5s3I This duplicates (no pun intended) one of the bugs reported by Gregor in id:87edxw8jp4.fsf@no.workgroup --- test/T450-emacs-show.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index 37940c96..2cebd43d 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -350,6 +350,15 @@ file=$(notmuch search --output=files id:${ID3} | head -n 3 | tail -n 1) subject=$(grep '^Subject:' $file) test_expect_equal "$output" "$subject" +FILE3=$(notmuch search --output=files --duplicate=3 "id:${ID3}") +test_begin_subtest "duplicate=3, stash" +test_subtest_known_broken +test_emacs_expect_t \ + "(notmuch-show \"id:${ID3}\") + (notmuch-show-choose-duplicate 3) + (notmuch-show-stash-filename) + (notmuch-test-expect-equal (list (car kill-ring)) (list \"${FILE3}\"))" + test_begin_subtest "duplicate=0" test_emacs "(test-log-error (notmuch-show \"id:${ID3}\") -- 2.35.2