From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 2FDD53858C78 for ; Tue, 12 Dec 2023 14:04:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2FDD53858C78 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2FDD53858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702389868; cv=none; b=ESF1WCR6YrI/IpgXajuLlmpGpRcVLDRzIjUvYglw0aA3otzWby3p+AGPiMSQnRfXKY3ipczC7PwluV88aRop3q0DvlUdevWf9E9ATdEdeShk91+XYEy86n7/ZvgzpmK2bRkgqqm8z4Siy0hZmE4vHGWWofQo/f6CBFIeaeMBlcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702389868; c=relaxed/simple; bh=BXLKmqhpKA+eSViYTDMAAokMuLNQP4M1gQLapf1kuqU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=r7Z48rFyzbbgoO8QOGXEviKy2Krf2VLtxQBSKZPfBnTL7nkW1peeTeEbvhQDg5O+Kk1AFeSE062ICVAD4cJa5SPkTHO2y4CgHi2nElZ4gXamdzKtGGQltMXTq97gBrRY8jCYTl1HMFAcvZw8e1mvzIHP6bev1bGk2FNhGfWP03g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2cb54ab7ffeso39398931fa.3 for ; Tue, 12 Dec 2023 06:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1702389856; x=1702994656; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:subject:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=4qCKzBOJ15sKjz/1n36+TOjtig1I+JdquWqA1Hy0fN4=; b=dB7XQStlNOgC4gPvr5gCb5P/yxx/OJPFv8jEBcyqLw+Xkm1MRd324x0JuZ3f6uLI86 ii8wqDvby4uulSRfMqNZROI7wUre21eOHKdIpAoK5zgxuEpXXjY8EZe3W5bjsJLiVINV /domk8HKale4eEZnTFirlOq92Z8fR5DvYtt02fdGrV9sHfaN+2X+/ibEQhrK+DBBiHTo oEUcBlERcEBA8eyoigvfbVeI9Y/AS7Pa7oyXbSWzymZYTtYhoIjfF960FXMhCOPv2uhE mXhXQ6c/+AE7CyynuvGxC6rXO+y2hCws2E1odczKUoQ1i+oIDwg9huiRcJhCZrhDaHkB T+sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702389856; x=1702994656; h=mime-version:user-agent:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4qCKzBOJ15sKjz/1n36+TOjtig1I+JdquWqA1Hy0fN4=; b=WZ4A2QO1RSFbM1txbEKP4yk0586STihSgWjOgSOXRSYJV6H3AMdJYL7n3hMSSYb6fP zF4b7bxxeGeeYcKrC/CEUeWXbVyMQxS3z0MH1aIB2lOUPhctzSXOQakejBTy1JEudzhi idgZDLbDK4CZ4VZMbdzj+bzWhzb+qPr2/jV2E3MMUIbPi0QkNa3Vn6jAKEvkMQEnZqgX sCNxfHjyBKvTmTxTmVT4v79uu5M+I3A/hlIq9rgY+1PeAHIJB4fKKVBa/PZL2NEQ52Vr jJ5Egy5Col9iKL8NdMkNMkEAeLFz5xNG6PDVgSC3l2mDC4EmFs7IArmsFfHCSaCV9Nbz 1Wzw== X-Gm-Message-State: AOJu0Yxvx7BMdzj/yTs9ipERawsYQwmB4XVkKS8J0reUrx3rxlKcasM3 1XQeb7DnGTR7UZHENjMkX5z5+g== X-Google-Smtp-Source: AGHT+IFE6lBFTWkZFoGtjX7pyjaJBV8V5czZasEbDK/XHNhsl5gLwPO3QQvqx09/xjcTUljhPTHgJA== X-Received: by 2002:a2e:9650:0:b0:2ca:1611:58e0 with SMTP id z16-20020a2e9650000000b002ca161158e0mr2531564ljh.71.1702389856231; Tue, 12 Dec 2023 06:04:16 -0800 (PST) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [81.187.245.177]) by smtp.gmail.com with ESMTPSA id ts7-20020a170907c5c700b00a1dd58874b8sm6296316ejc.119.2023.12.12.06.04.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2023 06:04:15 -0800 (PST) Date: Tue, 12 Dec 2023 14:04:13 +0000 (GMT) From: "Maciej W. Rozycki" To: dejagnu@gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH DejaGNU/GCC 0/1] Support per-test execution timeout factor Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, This patch quasi-series makes it possible for individual test cases identified as being slow to request more time via the GCC test harness by providing a test execution timeout factor, applied to the tool execution timeout set globally for all the test cases. This is to avoid excessive testsuite run times where other test cases do hang as it would be the case if the timeout set globally was to be increased. The test execution timeout is different from the tool execution timeout where it is GCC execution that is being guarded against taking excessive amount of time on the test host rather than the resulting test case executable run on the target afterwards, as concerned here. GCC already has a `dg-timeout-factor' setting for the tool execution timeout, but has no means to increase the test execution timeout. The GCC side of these changes adds a corresponding `dg-test-timeout-factor' setting. As the two changes are independent from each other, they can be applied in any order with the feature becoming active once both have been placed in a given system. I chose to submit them together so as to give an opportunity to both DejaGNU and GCC developers to chime in. The DejaGNU side of this patch quasi-series relies on that patch series: to be applied first, however I chose to post the two parts separately so as not to clutter the GCC mailing list with changes solely for DejaGNU. This has been verified with the GCC testsuite in a couple of environments using the Unix protocol, both locally and remotely, the GDB stub protocol, and the sim protocol, making sure that timeout settings are respected. I found no obvious way to verify the remaining parts, but the changes follow the same pattern, so they're expected to behave consistently. Let me know if you have any questions, comments or concerns. Otherwise please apply/approve respectively the DejaGNU/GCC side. Maciej