From patchwork Tue May 24 15:40:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 575745 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:c603:0:0:0:0 with SMTP id jv3csp2443200mab; Tue, 24 May 2022 09:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx3jISZjIAaxs7BahxvoNagxXkLGgtrmA0+S9IQbhm4rGaKm7g2oepw4gk3nXNh23y1RSJ X-Received: by 2002:a05:620a:b4a:b0:69f:66fc:a3db with SMTP id x10-20020a05620a0b4a00b0069f66fca3dbmr17431889qkg.679.1653409342392; Tue, 24 May 2022 09:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653409342; cv=none; d=google.com; s=arc-20160816; b=n9cGwI9ujwHWaN/GGR3i3Spw8mVYV2jA66fvdcAAt2NuT9SkLipxlIADSwBmxA4UQ6 xLVba1AnmbDbW/t0q37ushVf6nB438uogUVyl9oXQzo1IYj0HTbU5T3jn6yLyiXnndiR LMhn18edZrKRzEP6GzGiRKLA8Q4vUzEBRsAp3ooGQ7fL3gaKx7bXKclULDN35rFQPhym dPmf588LlIKiH+9UotHtdjGpbzp6csr22YU1aB3DOlOG9d9h72Giz2KiCC9oXW1MTwrH 2KGFNiZjEDPkHHy2YB7Z7yDGKuKMPQCkhq5gTplwQHqT0DDMcehE7ilbO4M6edmc+wAh yDWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Hk1aHrQ9TVl6KrEJ1C7v3kI0UJPqRUC122r5YQRX1T0=; b=MZfRZVbLXdShpqGJVWe1MR5zSyyLdqhSXMDckzNw47q2TjTCk1GlheSFi71ZH6yM/b osY4DyUALJ4MUgLYhoP+gbZij1FHZLs8IVRwZVJsCFxvJZx2+efPuGWsy7dk2+GKvp2V thQYZwX2KoQhIj14j13c+/wbrpG/Esn3+EPv58FNWzjvjjnFrJgveVvBbd7pk3xjucm4 uDsUy+xMDv2afGMlDmcz7+OT3PcFJTYMOB0DR1ZHT0TPZuVa8ZMkYyCpKvoUQ+4JCKt6 NXFMnFx+VmiQWps7WWcfFiC3uVqI4bQjk1MPCyVnzd3pMrgEMxcsRWwOY+t7gVRNnCei 785Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EN+VhVPr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y8-20020ac85f48000000b002f3cf1f3b02si4219893qta.640.2022.05.24.09.22.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 May 2022 09:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EN+VhVPr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntXIb-0002kn-W2 for patch@linaro.org; Tue, 24 May 2022 12:22:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntWel-00044w-4f for qemu-devel@nongnu.org; Tue, 24 May 2022 11:41:11 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:41869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntWeg-0005MN-Ku for qemu-devel@nongnu.org; Tue, 24 May 2022 11:41:10 -0400 Received: by mail-wr1-x42c.google.com with SMTP id u27so25452414wru.8 for ; Tue, 24 May 2022 08:41:06 -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=Hk1aHrQ9TVl6KrEJ1C7v3kI0UJPqRUC122r5YQRX1T0=; b=EN+VhVPrP0M8IVs4+YqePHOeZevPT9qaCGj+B4BvNgSlJhupwjZanpmunUUVUeBatm +Q1hVCAWlABbE1CAwnAaA4su1BWSNP1d1TVUHn6X1hGDKeNTlpBE4znAALo1l3Ttnxug i+U4EWRzIpVK/UVPjfqw49uUji7mZjBhm0M7lQX8lIamIWJDwSfGQe3JosZlJm6k+DnQ Jeg1+kJ0mQ4ouzcbbVf8Wsr4Xj2f8hnZRNaH8onqVkBLzNMZzNPA34Q/XGVmeHVx3wMe zUH5bYUlgnThB6KFIRjxWfBnOX6A/SXnWg5IpX7a3IyXQT/CSDyjL0nioQU0UXNOpuk/ I9PQ== 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=Hk1aHrQ9TVl6KrEJ1C7v3kI0UJPqRUC122r5YQRX1T0=; b=KTOMCekQI8GlxEIwejLfnN3+66zEcB9suqKNJQ3ZQzyGFdAh2oshpbwYMIrfmP0C+G fdhgK05gDN/R6GcroHVSztnX5ZZYmAWR8Q22SU9AafEls3HisrrHIO63eXa8BPhiWzEC f7PmCYyG5R0xKJ7J227N4DJUjNGUUQKegl/70Bx0OQaOwEUGqpE1Ws6+LzFSobqRdIgK S4HZ6S497olQgauGrHli958wZU6lXolHX7Seq2Fl53JTLAPdH7ZwllBJfXUqWR5ElN97 0N9Yy0OTs5x5xNShzzfDM/p3Is5UjP0y2N5ASkVf3eNlwJ5qr8mY6cEcv5FP6CKiicLG h0Ag== X-Gm-Message-State: AOAM532owOyask8LhyozsNJSSbkXBmjvH5g8KcCHik1u12ho0KYl9uWL iJoDKl4gvCzU5D8HkSjv9jTG0O5fsvcxsg== X-Received: by 2002:a5d:58f3:0:b0:20d:d14:4801 with SMTP id f19-20020a5d58f3000000b0020d0d144801mr23269955wrd.168.1653406865102; Tue, 24 May 2022 08:41:05 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l4-20020adfbd84000000b0020e5d2a9d0bsm15698734wrh.54.2022.05.24.08.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 08:41:01 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 223591FFC0; Tue, 24 May 2022 16:40:57 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: slp@redhat.com, mst@redhat.com, marcandre.lureau@redhat.com, stefanha@redhat.com, mathieu.poirier@linaro.org, viresh.kumar@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , Laurent Vivier , Paolo Bonzini Subject: [PATCH v2 08/15] tests/qtest: add a timeout for subprocess_run_one_test Date: Tue, 24 May 2022 16:40:49 +0100 Message-Id: <20220524154056.2896913-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220524154056.2896913-1-alex.bennee@linaro.org> References: <20220524154056.2896913-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hangs have been observed in the tests and currently we don't timeout if a subprocess hangs. Rectify that. Signed-off-by: Alex Bennée --- tests/qtest/qos-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/qos-test.c b/tests/qtest/qos-test.c index 7e1c8fc579..46623da731 100644 --- a/tests/qtest/qos-test.c +++ b/tests/qtest/qos-test.c @@ -185,7 +185,7 @@ static void run_one_test(const void *arg) static void subprocess_run_one_test(const void *arg) { const gchar *path = arg; - g_test_trap_subprocess(path, 0, + g_test_trap_subprocess(path, 60 * G_USEC_PER_SEC, G_TEST_SUBPROCESS_INHERIT_STDOUT | G_TEST_SUBPROCESS_INHERIT_STDERR); g_test_trap_assert_passed(); }