From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mt6TCqliYWG8OAAAWB0awg (envelope-from ) for ; Sat, 09 Oct 2021 05:36:41 -0400 Received: by simark.ca (Postfix, from userid 112) id 1BCE71EE20; Sat, 9 Oct 2021 05:36:41 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EB2FD1E4A3 for ; Sat, 9 Oct 2021 05:36:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EBBAA3858434 for ; Sat, 9 Oct 2021 09:36:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EBBAA3858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633772199; bh=CbIYwHH0mqYj9b4bkWdDkD0FPRl5MAPuRET4wLhSyOo=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=oAC1DvF9HqZSBm7b1wkSaFa+Min94AzK7X0Wo5zU8DFv0CGl8r7139/+Q8xk23MVT mRITOS6dthZKwWkB4JLLcxWwi4mz+QJhm6hNzJ0XEeBoPmkLrHbBBW5qwYA8z7vVol Mif62KoxBBXBdws6xMatb0kRFYFfhopwlzs4ZipM= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id C6489385840A for ; Sat, 9 Oct 2021 09:36:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C6489385840A Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E1A2B221A6 for ; Sat, 9 Oct 2021 09:36:18 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C35BD13517 for ; Sat, 9 Oct 2021 09:36:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lZstLpJiYWGqGwAAMHmgww (envelope-from ) for ; Sat, 09 Oct 2021 09:36:18 +0000 Date: Sat, 9 Oct 2021 11:36:17 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix fortran module tests with stressed cpu Message-ID: <20211009093615.GA22892@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, When running these test-cases: - gdb.fortran/info-modules.exp - gdb.fortran/module.exp - gdb.mi/mi-fortran-modules.exp in conjunction with: ... $ stress -c $(($(cat /proc/cpuinfo | grep -c "^processor") + 1)) ... I run into timeouts. Fix this by using: - "set auto-solib-add off" to avoid symbols of shared libs (which doesn't work for libc, now that libpthread_name_p has been updated to match libc) - "nosharedlibrary" to avoid symbols of libc Tested on x86_64-linux. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28133 Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix fortran module tests with stressed cpu --- gdb/testsuite/gdb.fortran/info-modules.exp | 6 ++++++ gdb/testsuite/gdb.fortran/module.exp | 6 ++++++ gdb/testsuite/gdb.mi/mi-fortran-modules.exp | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/gdb/testsuite/gdb.fortran/info-modules.exp b/gdb/testsuite/gdb.fortran/info-modules.exp index c9d2a18e119..fe85f5060ac 100644 --- a/gdb/testsuite/gdb.fortran/info-modules.exp +++ b/gdb/testsuite/gdb.fortran/info-modules.exp @@ -28,11 +28,17 @@ if { [prepare_for_testing "failed to prepare" $testfile \ return -1 } +# Avoid shared lib symbols. +gdb_test_no_output "set auto-solib-add off" + if { ![fortran_runto_main] } { perror "Could not run to main." continue } +# Avoid libc symbols. +gdb_test "nosharedlibrary" + set logical4 [fortran_logical4] set integer4 [fortran_int4] set real4 [fortran_real4] diff --git a/gdb/testsuite/gdb.fortran/module.exp b/gdb/testsuite/gdb.fortran/module.exp index b391855b2ee..c44c128c6c8 100644 --- a/gdb/testsuite/gdb.fortran/module.exp +++ b/gdb/testsuite/gdb.fortran/module.exp @@ -31,11 +31,17 @@ gdb_test "p modmany::var_i" " = 14" "stopped language detection" gdb_test "print mod1::var_const" " = 20" "fully qualified name of DW_TAG_constant" +# Avoid shared lib symbols. +gdb_test_no_output "set auto-solib-add off" + if ![fortran_runto_main] then { perror "couldn't run to main" continue } +# Avoid libc symbols. +gdb_test "nosharedlibrary" + set int_type [fortran_int4] # Test 'info variables' can find module variables. diff --git a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp index fc1fa411ee3..871a25c65fc 100644 --- a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp +++ b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp @@ -30,8 +30,13 @@ if {[build_executable "failed to prepare" ${testfile} \ mi_clean_restart $binfile +# Avoid shared lib symbols. +mi_gdb_test "-gdb-set auto-solib-add off" "\\^done" + mi_runto_main +# Avoid libc symbols. +mi_gdb_test {-interpreter-exec console "nosharedlibrary"} # Patterns to skip optional system modules that appear with later versions of GFortran. set system_modules_pattern \