From nobody Mon Feb 9 12:25:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1579779880; cv=none; d=zohomail.com; s=zohoarc; b=g4zs77TqXxLjccU5zwQlSUTn2meGHMsNU/NDa5czZOdLyvU+f+NReAG3VGsm54+gwxa9xszPyr73dh4ZRxx9M6EuR50+uMRVafvMZZOayw6cLZxLLAllPBFyvAZuCXa8rqZU4BWoJYUzzIiKmRFwUIabdGmnayyF1H37h9RrGos= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579779880; h=Content-Type:Content-Transfer-Encoding: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=76gtJZwq8F4pOzjpYHN15rxxBfLHphdzAFGb626I270=; b=fPZlkIh4gdoznPbMAeGi/rHJhjZ+xGjrUwb8mcyFhKef6NqoOsFyZmV9cLuNl2TYi7pkKWDiqjQdh8uFAf6QwBeyhmyRprPMAemy0TUJ3yaAVZz/YdcgpdWpzfZEKZKUEfkMR6xSRtIc6Z1d2aXQZENySjjSbZZu6hDDrUUhs/c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1579779880848747.2421467200902; Thu, 23 Jan 2020 03:44:40 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-260-BulnoGOFPrm_yYQGMhXIvA-1; Thu, 23 Jan 2020 06:44:34 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 65E82100550E; Thu, 23 Jan 2020 11:44:29 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B069B86452; Thu, 23 Jan 2020 11:44:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 6BBBC18034FF; Thu, 23 Jan 2020 11:44:28 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00NBiGsh025608 for ; Thu, 23 Jan 2020 06:44:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id 68A698575C; Thu, 23 Jan 2020 11:44:16 +0000 (UTC) Received: from domokun.gsslab.fab.redhat.com (unknown [10.33.8.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA3EC85750; Thu, 23 Jan 2020 11:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579779879; h=from:from:sender:sender: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=76gtJZwq8F4pOzjpYHN15rxxBfLHphdzAFGb626I270=; b=Sh6XnAPvvcBJ3jcTmn8GYpyy61DESGRlAnm5XSBlL1eEDv2fXg0dRIaOoEMo1+Y7I/0w37 6avey9e0EM8ptfjXM76mD1ec6U6fymDUp/8ljM2dmPQX2J8048iY4b6ODNOIjYONDvlEBS TW4XRA5T5lE39hfpxGZNH+cY2fda+fc= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 30/32] tests: conditionalize use of SIGPIPE Date: Thu, 23 Jan 2020 11:43:23 +0000 Message-Id: <20200123114325.3860881-31-berrange@redhat.com> In-Reply-To: <20200123114325.3860881-1-berrange@redhat.com> References: <20200123114325.3860881-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: BulnoGOFPrm_yYQGMhXIvA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" SIGPIPE is not available on the Windows platform. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/virauthconfigtest.c | 2 ++ tests/virkeyfiletest.c | 2 ++ tests/virlockspacetest.c | 2 ++ tests/virnetmessagetest.c | 2 ++ tests/virnetsockettest.c | 2 ++ tests/virtimetest.c | 2 ++ tests/viruritest.c | 2 ++ 7 files changed, 14 insertions(+) diff --git a/tests/virauthconfigtest.c b/tests/virauthconfigtest.c index e3bd927dcb..20855f004e 100644 --- a/tests/virauthconfigtest.c +++ b/tests/virauthconfigtest.c @@ -84,7 +84,9 @@ mymain(void) =20 virAuthConfigPtr config; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 #define TEST_LOOKUP(config, hostname, service, credname, expect) \ do { \ diff --git a/tests/virkeyfiletest.c b/tests/virkeyfiletest.c index b1236a47e1..abdf06c4a7 100644 --- a/tests/virkeyfiletest.c +++ b/tests/virkeyfiletest.c @@ -109,7 +109,9 @@ mymain(void) { int ret =3D 0; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 if (virTestRun("Test parse", testParse, NULL) < 0) ret =3D -1; diff --git a/tests/virlockspacetest.c b/tests/virlockspacetest.c index 40395e8c72..3afedb4c46 100644 --- a/tests/virlockspacetest.c +++ b/tests/virlockspacetest.c @@ -342,7 +342,9 @@ mymain(void) { int ret =3D 0; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 if (virTestRun("Lockspace creation", testLockSpaceCreate, NULL) < 0) ret =3D -1; diff --git a/tests/virnetmessagetest.c b/tests/virnetmessagetest.c index b0a01e8b9d..a207f2d85f 100644 --- a/tests/virnetmessagetest.c +++ b/tests/virnetmessagetest.c @@ -525,7 +525,9 @@ mymain(void) { int ret =3D 0; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 if (virTestRun("Message Header Encode", testMessageHeaderEncode, NULL)= < 0) ret =3D -1; diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c index af11a0f6e8..9dfc707c90 100644 --- a/tests/virnetsockettest.c +++ b/tests/virnetsockettest.c @@ -522,7 +522,9 @@ mymain(void) int freePort; #endif =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 virEventRegisterDefaultImpl(); =20 diff --git a/tests/virtimetest.c b/tests/virtimetest.c index f9ac55192d..5736245722 100644 --- a/tests/virtimetest.c +++ b/tests/virtimetest.c @@ -115,7 +115,9 @@ mymain(void) { int ret =3D 0; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 #define TEST_FIELDS(ts, year, mon, day, hour, min, sec) \ do { \ diff --git a/tests/viruritest.c b/tests/viruritest.c index 07cf7261d1..0edf3e5522 100644 --- a/tests/viruritest.c +++ b/tests/viruritest.c @@ -145,7 +145,9 @@ mymain(void) { int ret =3D 0; =20 +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif /* WIN32 */ =20 #define TEST_FULL(uri, uri_out, scheme, server, port, path, query, \ fragment, user, params) \ --=20 2.24.1