From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EOHbAGKsA2LsJgEAgWs5BA (envelope-from ) for ; Wed, 09 Feb 2022 12:58:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6L0COWGsA2JQZAAAauVa8A (envelope-from ) for ; Wed, 09 Feb 2022 12:58:25 +0100 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 B37F31ABF7 for ; Wed, 9 Feb 2022 12:58:25 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0EC9D5F71C; Wed, 9 Feb 2022 11:58:15 +0000 (UTC) Received: from mailproxy05.manitu.net (mailproxy05.manitu.net [217.11.48.69]) by mail.notmuchmail.org (Postfix) with ESMTPS id E28645F713 for ; Wed, 9 Feb 2022 11:58:10 +0000 (UTC) Received: from localhost (200116b8604631004d94416580d017f7.dip.versatel-1u1.de [IPv6:2001:16b8:6046:3100:4d94:4165:80d0:17f7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: michael@grubix.eu) by mailproxy05.manitu.net (Postfix) with ESMTPSA id 9BE571B60659; Wed, 9 Feb 2022 12:52:37 +0100 (CET) From: Michael J Gruber To: notmuch@notmuchmail.org Subject: [PATCH 2/4] test: due not pass T380.1 for the wrong reasons Date: Wed, 9 Feb 2022 12:52:34 +0100 Message-Id: <8d483901f3cf9bee86d7359ff1d665943adcd31b.1644406756.git.git@grubix.eu> X-Mailer: git-send-email 2.35.1.306.ga00bde9711 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: JAQ2NUQGBYHXLZR6FT3Z33FVC2SG2Y5S X-Message-ID-Hash: JAQ2NUQGBYHXLZR6FT3Z33FVC2SG2Y5S X-MailFrom: git@grubix.eu 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644407905; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=n/th123Y16hGSuYAG4eF/eQMDwUoZ3GPArRpVaGYie8=; b=gP2qugIPMWw22O7TQ/fEYbqtkBPetOEGhO6MsHjtauKQH7rqbefdrzwvBG/Hj9uVdcvdkM keFBXi+dFWdwWixHxkvn3pZoQxR3S+DHVNqwBnR9zTEdsl0nIeN8wv8rOaoF10lXObSnoz mtYDrCmolcK6MuB9957iccCC5SIvAzXs85lzAXybBp9S1oL6urK0Pg+XJdkoJ1XG7n54KM 64jnTtwhl54xj+MGnXtXGU24rtwY5WXHqU6H9HFRsXWCeYmwuL+THoQd3rwhj7zVKU0jxM W2wxyUi7xJ6Ap9iB5lPlObsal7cHLE3PufxRt+phyjOqpjhl7U8SCppT4ILC+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644407905; a=rsa-sha256; cv=none; b=CF3/zKf1Djx6L5RGlFmZsIbn7vc8N3xWlxscu+lF5BP8sZYXrjpBmlPrW2rNC9+oBr769o iZBksfyVqCiCkD1iJoyMCmBvbTA6V0b4MwZjVAW1cMNbYPoN3ZJjdqiEgmoXL/zIR3BCJr qjqIXob4PQc7gKtOnPLsfQWYN5BJD1FEGljUFE7gpmdyQj6x8O8xcNqW8T0k2XoVfDAvGn 7/alnULd2dOnEB9V54rS+PzMOCY009YLS7wFWwHFUbTUhdtWi0NuPXyxip1QgDzuZXSs1z ONtqDqyC520JosN605GqF0JzhT5CEEQEmlSnCHYrpLOBvXIgvjnXLgj14Xsvtg== 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: -1.53 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: B37F31ABF7 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: fSNzmGDeiyF3 If gdb is missing then some files are never written to so that the comparisons of non-existing files succeeds for the wrong reason, claiming that `notmch new` is idempotent when it was in fact never run. Catch this and (for lack of a better spot) set up the files with a reason for the FAIL. Signed-off-by: Michael J Gruber --- test/T380-atomicity.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/T380-atomicity.sh b/test/T380-atomicity.sh index a6f1e037..7f618062 100755 --- a/test/T380-atomicity.sh +++ b/test/T380-atomicity.sh @@ -90,6 +90,10 @@ if test_require_external_prereq gdb; then i=$(expr $end - 1) fi done +else + echo -n "Test fails due to missing gdb." > searchall + echo -n > expectall + outcount=0 fi test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts' -- 2.35.1.306.ga00bde9711