From nobody Tue Feb 10 12:42:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1657620214; cv=none; d=zohomail.com; s=zohoarc; b=dw/WaRloAJ3H/+Oorm0J+UOV+GkT+UajaE9MBaVfiQFi6VFx4TRFiOfW9vqU59vISreJ1nGtQY9Rhx9YioMDsnHtbtCHENOrZrmCzSo409kxh/4TlTfrVA2qymGetMrrUD6W5ocFqMpESTJMQTnl4OIIh4eswGbUfnKte7AwZfk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657620214; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zbOxxenHaKVYrkhpq6ujndTW/g6U1Cx28IHyEc7+Fms=; b=FDcG84YeAAMh7jkSBOK1dF3CAy1svj1umBQN4N5vwQ72ke6E8mzGN/1ndq2Omcfn9GJ2cWEqT+AuiZF6cJaWX8kY2MqG/xfDZ+SQHnmDV4zj2s3fQTCASbV9gdS0aw2cTWq9ex1pl56Kmci2VSG3S1EezAS8FOPaWBGamVpcDlU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1657620214372785.0176910704988; Tue, 12 Jul 2022 03:03:34 -0700 (PDT) Received: from localhost ([::1]:37816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBCjs-0000eA-Fa for importer@patchew.org; Tue, 12 Jul 2022 06:03:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBCfj-00067t-A5 for qemu-devel@nongnu.org; Tue, 12 Jul 2022 05:59:15 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:36654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBCfh-0001Hj-RI for qemu-devel@nongnu.org; Tue, 12 Jul 2022 05:59:15 -0400 Received: by mail-pg1-x533.google.com with SMTP id s206so7114286pgs.3 for ; Tue, 12 Jul 2022 02:59:13 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id s18-20020a170902ea1200b0016bdb5a3e37sm6348990plg.250.2022.07.12.02.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 02:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zbOxxenHaKVYrkhpq6ujndTW/g6U1Cx28IHyEc7+Fms=; b=I4aMdhkN8WaqfY/0E0vNob0K2snm5nOuTH1phx2VmVMZymoBYjX+Om/AGZnCd+QYIR 2diT+V1vqWfYGgp7JBjuM1HGOaJhjKK/gC1f6a0O2nG69kumDOtHi4mkRxkkIv5awFVn 7N+hkUTD2XD6yx5ElKjytnx4NcEMHUSgSVIVSL6/K+HkqXeQNLo0onBN4bLVaasE+FT0 AZFAxN+uM7lGSnmw+lQ29RRnC+BuWtzKujgcm0OTdssOOsUvH975ahpt0hWGwprbdm5k P4+SXM71BNZBfeySAwwJpCX96rQaFX1IjLRrzGvoUbWoCXgZaYFTa3CwcdPhrHQb3Nrb LAcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zbOxxenHaKVYrkhpq6ujndTW/g6U1Cx28IHyEc7+Fms=; b=vgBUGrHn+daeZKDUWxGGRi79aD4HxeyF4ojg9wZkjsa1ZDzORQlAeM9GE+FhvEcdqy qwADKF9IOPG/1f1RnUzeWuFsQguAy/eIua89rkdhsmnQ2pLSlRLgF2ZalaWwJj/z86o7 LoL+Vrf7qaelytNvIj02/qOSBsG009hBnq0H/Sr38zQolaP4VOQn1pVkDjvJgkP2a8O7 CVRVwz6nYFSmN4nb8zzL6tFDhXsJ8hvPgiydi23DRCNFWzlihicS9JxSw0ecguIvU83q bDlqd6xz9yhJW2rbIewUbOlASQQLh+BgLdz46Ig7xMQPGkIynvABIlTT2vGr+Q6nQFky BQuA== X-Gm-Message-State: AJIora/qOroWbjWIvY0nchQmoiZq6q4MXWoFrOFiz011JFc4UhMC0vaq K8tXbzQ1uNYwArrb/MVUEvrvG9AonVcWCDL6 X-Google-Smtp-Source: AGRyM1vu9fM+wz3A4ViPDco8HtuG7lNr2MnVZCZxwwN6aFBbB3/dSIkutzUDorKLv/3FwqhXp+DpKQ== X-Received: by 2002:a63:1047:0:b0:40d:7553:d897 with SMTP id 7-20020a631047000000b0040d7553d897mr19260306pgq.485.1657619952421; Tue, 12 Jul 2022 02:59:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Vladimir Sementsov-Ogievskiy , Thomas Huth , Hanna Reitz Subject: [COMMITTED 2/3] iotests: fix copy-before-write for macOS and FreeBSD Date: Tue, 12 Jul 2022 15:29:00 +0530 Message-Id: <20220712095901.212353-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220712095901.212353-1-richard.henderson@linaro.org> References: <20220712095901.212353-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1657620215925100001 Content-Type: text/plain; charset="utf-8" From: Vladimir Sementsov-Ogievskiy strerror() represents ETIMEDOUT a bit different in Linux and macOS / FreeBSD. Let's support the latter too. Fixes: 9d05a87b77 ("iotests: copy-before-write: add cases for cbw-timeout o= ption") Signed-off-by: Vladimir Sementsov-Ogievskiy Tested-by: Thomas Huth Reviewed-by: Hanna Reitz Message-Id: <20220705153708.186418-1-vsementsov@yandex-team.ru> Signed-off-by: Richard Henderson Reviewed-by: Warner Losh --- tests/qemu-iotests/tests/copy-before-write | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qemu-iotests/tests/copy-before-write b/tests/qemu-iotest= s/tests/copy-before-write index 16efebbf8f..56937b9dff 100755 --- a/tests/qemu-iotests/tests/copy-before-write +++ b/tests/qemu-iotests/tests/copy-before-write @@ -192,6 +192,11 @@ read 1048576/1048576 bytes at offset 0 =20 def test_timeout_break_guest(self): log =3D self.do_cbw_timeout('break-guest-write') + # macOS and FreeBSD tend to represent ETIMEDOUT as + # "Operation timed out", when Linux prefer + # "Connection timed out" + log =3D log.replace('Operation timed out', + 'Connection timed out') self.assertEqual(log, """\ wrote 524288/524288 bytes at offset 0 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) --=20 2.34.1