From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 22F22383E6A8; Mon, 23 May 2022 06:55:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22F22383E6A8 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Skip language auto in gdb.base/parse_number.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 8d4b0049b533945bcc8977bfd5ab79371c44de81 X-Git-Newrev: cb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d Message-Id: <20220523065550.22F22383E6A8@sourceware.org> Date: Mon, 23 May 2022 06:55:50 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2022 06:55:50 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dcb0d58bf4d27= 4cfb1ae11b75bd2b3ba81c8d371d commit cb0d58bf4d274cfb1ae11b75bd2b3ba81c8d371d Author: Tom de Vries Date: Mon May 23 08:55:46 2022 +0200 [gdb/testsuite] Skip language auto in gdb.base/parse_number.exp =20 In test-case gdb.base/parse_number.exp, we skip architecture auto in the $supported_archs loop, to prevent duplicate testing. =20 Likewise, skip language auto and its alias local in the $::all_languages loop. This reduces the number of tests from 17744 to 15572. =20 Tested on x86_64-linux, with a build with --enable-targets=3Dall. Diff: --- gdb/testsuite/gdb.base/parse_number.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.ba= se/parse_number.exp index 444f5d0534b..197e27a8e9e 100644 --- a/gdb/testsuite/gdb.base/parse_number.exp +++ b/gdb/testsuite/gdb.base/parse_number.exp @@ -63,6 +63,10 @@ proc test_parse_numbers {arch} { =20 foreach_with_prefix lang $::all_languages { if { $lang =3D=3D "unknown" } { + # Tested outside $supported_archs loop. + continue + } elseif { $lang =3D=3D "auto" || $lang =3D=3D "local" } { + # Avoid duplicate testing. continue } =20 @@ -117,6 +121,7 @@ set all_languages [get_set_option_choices "set language= "] =20 foreach_with_prefix arch $supported_archs { if {$arch =3D=3D "auto"} { + # Avoid duplicate testing. continue } test_parse_numbers $arch