From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id DVcPIM/lnGrQGjAAWB0awg (envelope-from ) for ; Sun, 06 Sep 2026 00:02:23 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lNjcRdyY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 68CCF1E09E; Sun, 06 Sep 2026 00:02:23 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 41A6D1E091 for ; Sun, 06 Sep 2026 00:02:16 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 181484BBCDA1 for ; Sun, 6 Sep 2026 04:02:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 181484BBCDA1 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lNjcRdyY Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by sourceware.org (Postfix) with ESMTPS id BDAA54BB8F48 for ; Sun, 6 Sep 2026 04:01:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDAA54BB8F48 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDAA54BB8F48 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788667305; cv=none; b=MQsfn83o5d0FOfKQ9qKhlNXOYnz3RA3jWSzF4DpiYcgIbKz2W//9fRaFxbMhU/f9JRfn3cDw+ddxPxLPAiQXkSkMtv32fWrVjEQ/Ogjsup+VJ5cTIN400NrMnE3jvdphIHHH0fcneONhCWbYP89JlJqcSOvQejXW0ZC6vw0nDXM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788667305; c=relaxed/simple; bh=zRcncfCXtYGcQA0wvshceRGdvVsTF3dcBt8R2HdoO1Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=St6c1Tt2+LyZ78geiDVQG8piew8Zm0k73T6MMrpUqMz5P8j92HJrsagWRGFtLcJDxPDavn7FV36YFKhXZhOgOISlRek+Ped1nd/JL0iO1ubVbVvwNnbxgOurwTjE7TSrdkgeHVZpozKXmwk5/WFpUVGdf4OWC8aFsRjeFUeHymk= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lNjcRdyY DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDAA54BB8F48 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-86b03b75fecso38085847b3.0 for ; Sat, 05 Sep 2026 21:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788667304; x=1789272104; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=qlksjlqaMj7oH2PMxhSNypuWPL/XpLkLU1BGcm7/GVE=; b=lNjcRdyYtnLQ4RBsBuyTsy4UVtIxW6fum18IrPRFy0aWkYj5KaQMHoydr1HVnMzLGE oNp85PynoGKkHReC+4gwtHGFTXyHdkQaWemxlAzPmPUbUDId+DF4VkGVWLB9wfGZ9Oyr XRkQUBQNuL8x1i0U1kc/B4Iubdr+mvWcO9Jw+DKrX1LCGZUelSFABSfAeYG31galV5oK MHv6ChWy94BufExnOMOpwagiqFXoISufG8P4tjVHK+mnaxi0ESdh/BHEepOmw+9R5xC5 9sVAAh3/1DACmbNgM5ovkh7Fwwssht1RiAiG12Gz1Rp++yFLsAeDZ8E5hAxVMyo0IABZ ZDKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788667304; x=1789272104; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=qlksjlqaMj7oH2PMxhSNypuWPL/XpLkLU1BGcm7/GVE=; b=dwPevgEtcf6hzr0PLHy3hParCPsg/vCB4TvBMWf0GyCd9irQSSmlZ1Ydp0yX08RWP3 gVcAqdwnfVA+cCSJv3PRlEbEWWt50fDCQXSWQ1z8mHz250Pah5crfx41kbyumHat4yYY qN4HonlWVrxI+8I+ouk22TGBzkf3uRfWsbaCO9ZvlZCM4OyUjXYLY6wPx8J9VW+0xUdj qtl9gPkUnFfvm6zkartDq/aDv88PC6aowsPVjs1/tDrNlciAYvS5FL2xenmkyFAXL/iw c0JOOgPkQ1pnNRuwcxcFX3GyUX56I8tdcDOIMTmSgLXwaEp2//97fTZo+DeUkQePclnk 7+/g== X-Gm-Message-State: AFuF++nibtE1KfUJfDdvp6ufdTipy7x65saCPtGBUjAVlBn1eNQe7Gja 3/bNMuoEgcMGEWqGLQBNXzrST6sbfTi3y8TfJ+nAJJMrvriPX7Prf1qv3bZ0N8gQ80CZQHoXSk5 Y6Jpx X-Gm-Gg: AYBFou2CfCyz0a6FCEIfpIns0m7vjBP3pMvjUh8mmHXphT1lhAYo3M/LDAaZ8WmYDIw SRBeeJIzpspgg3dWxCSfGhrq53GM16Cjteigk/2fe6qc+7G2JlFcPLZPakMRU6VmxMWqSMaWYdF E3SsqomQeufOqKsqGqRcN1kH/VKHEjIOhrUXRXYh/Q0Uzypis2MbTzoHG41eoUFVYZE6fzCEw4I U14V7kaI9bMkOi3PPkhMd+hqJQJLZHc0cTC5WhSNIGFT299lF9EZllKI5EraK9E1SWWTgHc4M3w Qn/N0vZabpVw2Q4AsxEUAzauEoDZXPET8LmG5qkvNiDJOEdnFxL32dirog5zCq4bSgQmBDMdFOs iypdrakLZmXRLqSwX6iP/rStLcJu0587GB5BFmV3wHsSgKaHcErVkmSQuQCl25dC3CNEeAI0LVt R42fmDqzIRKZxnP0/mBdXEE0GbE5hRMxqf+JJqMkXHLw3syJmCY6EyAaiJKMXcVGhk8bD0Kq4= X-Received: by 2002:a05:690e:7a1:b0:66f:c1bc:87fd with SMTP id 956f58d0204a3-66fc1bc8a66mr1956461d50.86.1788667303833; Sat, 05 Sep 2026 21:01:43 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-66fb49579c0sm5653816d50.17.2026.09.05.21.01.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2026 21:01:43 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH] gdb.gdb/python-helper.exp: Increase timeout values Date: Sun, 6 Sep 2026 01:01:40 -0300 Message-ID: <20260906040140.158197-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org In the three Linux machines I tested (my x86_64 laptop and two aarch64 servers), gdb.gdb/python-helper.exp has this timeout failure: FAIL: gdb.gdb/python-helper.exp: pretty print type instance flags (timeout) And the slower aarch64 server also has this one: FAIL: gdb.gdb/python-helper.exp: start inner gdb (timeout) Fix these failures by using timeout factors. For the latter, a 2x factor is enough. For the former, I needed 8x. It appears that the "pretty print type instance flags" test is quite demanding. --- I actually noticed these failures because I compared GDB 17.2 test results with GDB 18 ones. OK to also push to the branch? gdb/testsuite/gdb.gdb/python-helper.exp | 40 ++++++++++++++----------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp index d84e48166995..bcd94b2e6ae5 100644 --- a/gdb/testsuite/gdb.gdb/python-helper.exp +++ b/gdb/testsuite/gdb.gdb/python-helper.exp @@ -91,19 +91,21 @@ proc test_python_helper {} { # little clearer when trying to unpick which GDB is active. gdb_test_no_output -prompt $outer_prompt_re "set prompt (outer-gdb) " "set outer gdb prompt" - # Send a command to the outer GDB to continue the inner GDB. The - # stop is being detected from the inner GDB, hence the use of -i - # here. - gdb_test_multiple "continue" "start inner gdb" { - -re "received signal SIGSEGV.* in GC_.*$outer_prompt_re" { - # Some versions of the GC used by Guile cause a SEGV - # during stack probing. Ignore this and carry on. - send_gdb "continue\n" - exp_continue - } - -i "$inferior_spawn_id" - -re "\r\n$gdb_prompt $" { - pass $gdb_test_name + with_timeout_factor 2 { + # Send a command to the outer GDB to continue the inner GDB. The + # stop is being detected from the inner GDB, hence the use of -i + # here. + gdb_test_multiple "continue" "start inner gdb" { + -re "received signal SIGSEGV.* in GC_.*$outer_prompt_re" { + # Some versions of the GC used by Guile cause a SEGV + # during stack probing. Ignore this and carry on. + send_gdb "continue\n" + exp_continue + } + -i "$inferior_spawn_id" + -re "\r\n$gdb_prompt $" { + pass $gdb_test_name + } } } @@ -172,11 +174,13 @@ proc test_python_helper {} { " int_stuff = \{ bit_size = $decimal, bit_offset = $decimal \}\}"] gdb_test -prompt $outer_prompt_re "print *val->m_type->main_type" $answer "pretty print type->main_type" - # Test printing instance flags using an artificial type. - set answer [string_to_regexp {instance_flags = [VOLATILE|DATA_SPACE|ADDRESS_CLASS(3)]}] - gdb_test -prompt $outer_prompt_re \ - "print *make_type_with_harvard_address_space (make_cv_type (0, 1, make_type_with_address_class (val->m_type, 3)), 2)" \ - "${answer}.*" "pretty print type instance flags" + with_timeout_factor 8 { + # Test printing instance flags using an artificial type. + set answer [string_to_regexp {instance_flags = [VOLATILE|DATA_SPACE|ADDRESS_CLASS(3)]}] + gdb_test -prompt $outer_prompt_re \ + "print *make_type_with_harvard_address_space (make_cv_type (0, 1, make_type_with_address_class (val->m_type, 3)), 2)" \ + "${answer}.*" "pretty print type instance flags" + } # Send the continue to the outer GDB, which resumes the inner GDB, # we then detect the prompt from the inner GDB, hence the use of