From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6G+qNNfGhGLB4gYAWB0awg (envelope-from ) for ; Wed, 18 May 2022 06:13:43 -0400 Received: by simark.ca (Postfix, from userid 112) id D49351E220; Wed, 18 May 2022 06:13:43 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=o3BLv3Ey; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 753BE1E00D for ; Wed, 18 May 2022 06:13:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CBE1D3857805 for ; Wed, 18 May 2022 10:13:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CBE1D3857805 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1652868822; bh=TNK4VNUcb1db3GMiVEyqAGGOc8wutgeUxp0MYtUeXxM=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=o3BLv3EyRkQhK6ZbnhNSIIkqcmuZst6a9UEQaM6vzyBeI4yvx0MyzwSKyWz0cvnPm U1nAMFk79m3KPgxPVoGrZPf50qov2EPG7qVJkgrI0CBe2Z7lxGkAU/N5Ge0XEih5Gs 5/+3yEVvBiorbix0kW8GnoWoMGCD2ti7Ualr774Q= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 981E23857404 for ; Wed, 18 May 2022 10:13:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 981E23857404 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 D117521B4E for ; Wed, 18 May 2022 10:13:10 +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 BE190133F5 for ; Wed, 18 May 2022 10:13:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K2hILbbGhGKLJwAAMHmgww (envelope-from ) for ; Wed, 18 May 2022 10:13:10 +0000 Date: Wed, 18 May 2022 12:13:09 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Simplify unknown lang testing in gdb.base/parse_number.exp Message-ID: <20220518101307.GA4948@delia> 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, Move testing of language unknown out of the $supported_archs loop in gdb.base/parse_number.exp. This reduces total amount of tests from 18466 to 17744. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Simplify unknown lang testing in gdb.base/parse_number.exp --- gdb/testsuite/gdb.base/parse_number.exp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp index 9668099bd82..444f5d0534b 100644 --- a/gdb/testsuite/gdb.base/parse_number.exp +++ b/gdb/testsuite/gdb.base/parse_number.exp @@ -62,6 +62,10 @@ proc test_parse_numbers {arch} { } foreach_with_prefix lang $::all_languages { + if { $lang == "unknown" } { + continue + } + gdb_test_no_output "set language $lang" set val "0xffffffffffffffff" @@ -71,9 +75,6 @@ proc test_parse_numbers {arch} { gdb_test "ptype $val" " = $fortran_type" } elseif {$lang == "modula-2"} { gdb_test "p/x $val" "Overflow on numeric constant\\." - } elseif {$lang == "unknown"} { - gdb_test "p/x $val" \ - "expression parsing not implemented for language \"Unknown\"" } else { # D and Rust define their own built-in 64-bit types, and # are thus always able to parse/print 64-bit values. @@ -102,6 +103,10 @@ proc test_parse_numbers {arch} { clean_restart +gdb_test_no_output "set language unknown" +gdb_test "p/x 0" \ + "expression parsing not implemented for language \"Unknown\"" + gdb_test_no_output "set max-completions unlimited" set supported_archs [get_set_option_choices "set architecture"]