From nobody Mon Feb 9 02:28:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1574183611; cv=none; d=zoho.com; s=zohoarc; b=ByMTJp617H575pTZ+9LpRX/zUUxwBCtEocIigzxzq3NqwTSXxjxU2iSdGLvker5Kd1XkIlD6P12W34K0QlYpG8AqiRoq1+0FHvvB0TvJSZi0y59S4OUqYvYWLVafqtXrRYek/EVhcqSnvSln7AfWcUwY1K3oEDL+Spy7oM9bGTY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574183611; h=Content-Type: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=aYii4P4+JrYKFNwRdLteVtAWIb9yFmCttIZd+wgqyNE=; b=UO/wdhhFsuUIk/UL95j89PnSZyhiozpj3Sa8dytwPXiWjjiyOb31hTC+LInkGOsH6MHMv+D6kHdkvR9VGbQXI+3f+qsioPUKlIyyEBSD0jC4cqLCgusxzJet7NsZ4EbJy63V3lukdGAu8sPMUCimVIrwlVeLvXxBjwnmgv6DGRM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574183611728531.0597313357983; Tue, 19 Nov 2019 09:13:31 -0800 (PST) Received: from localhost ([::1]:48128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX74E-0002eB-70 for importer@patchew.org; Tue, 19 Nov 2019 12:13:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47246) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX6za-0005Rf-34 for qemu-devel@nongnu.org; Tue, 19 Nov 2019 12:08:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX6zX-0004JJ-Te for qemu-devel@nongnu.org; Tue, 19 Nov 2019 12:08:41 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:44631 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iX6zX-0004IX-Pa for qemu-devel@nongnu.org; Tue, 19 Nov 2019 12:08:39 -0500 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-305-HQfPu86CPAqJhErcV0TuzA-1; Tue, 19 Nov 2019 12:08:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A76CD802CDD; Tue, 19 Nov 2019 17:08:36 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-117-181.ams2.redhat.com [10.36.117.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id C1C635E7A6; Tue, 19 Nov 2019 17:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574183319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aYii4P4+JrYKFNwRdLteVtAWIb9yFmCttIZd+wgqyNE=; b=QO19XdTl4dlrwpSqCvHTTtTlQGdgS4V/2zt248WCC/7Luc1XsZ0mvRkaSwwi0O3DPJSUGy 75o2yfSNmAUO1A3FwYk+kTps77GiygY9wDAro9d+afg2gL1U7w44tnPNPAygstjFIGvjz0 WnhtIOd/f2H1URyQQ+aZ5NQki2ISKt0= From: Thomas Huth To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kevin Wolf , Max Reitz , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 4/6] tests/test-util-filemonitor: Skip test on non-x86 Travis containers Date: Tue, 19 Nov 2019 18:08:19 +0100 Message-Id: <20191119170822.45649-5-thuth@redhat.com> In-Reply-To: <20191119170822.45649-1-thuth@redhat.com> References: <20191119170822.45649-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: HQfPu86CPAqJhErcV0TuzA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Christian Borntraeger , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" test-util-filemonitor fails in restricted non-x86 Travis containers since they apparently blacklisted some required system calls there. Let's simply skip the test if we detect such an environment. Signed-off-by: Thomas Huth Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/test-util-filemonitor.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test-util-filemonitor.c b/tests/test-util-filemonitor.c index 301cd2db61..45009c69f4 100644 --- a/tests/test-util-filemonitor.c +++ b/tests/test-util-filemonitor.c @@ -406,10 +406,21 @@ test_file_monitor_events(void) char *pathdst =3D NULL; QFileMonitorTestData data; GHashTable *ids =3D g_hash_table_new(g_int64_hash, g_int64_equal); + char *travis_arch; =20 qemu_mutex_init(&data.lock); data.records =3D NULL; =20 + /* + * This test does not work on Travis LXD containers since some + * syscalls are blocked in that environment. + */ + travis_arch =3D getenv("TRAVIS_ARCH"); + if (travis_arch && !g_str_equal(travis_arch, "x86_64")) { + g_test_skip("Test does not work on non-x86 Travis containers."); + return; + } + /* * The file monitor needs the main loop running in * order to receive events from inotify. We must --=20 2.23.0