From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 9A4CB3858295; Mon, 17 Oct 2022 19:20:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A4CB3858295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666034441; bh=oNxFNxZBneI5hnHVslA6anPEVWSdFmyIlWv1LtJZYFk=; h=From:To:Subject:Date:From; b=CwFXhs/hffK6ydrCB5BmG1nZkvwVrNHR9MaynSIq/xqWJhS2GMYS6aaFohpPS8WE7 hyL1u0Q6Bc3Vurs2tn/T/3oT0ZWo5+1HgRt9EaZs1Jv2Sn4U1NMSUTQt3ZKRG79/+K IXlxiDedWWR4+Tpn4QhBgqtZJCBsxxPOKIFYxBj8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] kfail an Ada test for GCC < 12 X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 069355439fca1702c2440678663d1d0d40bbb735 X-Git-Newrev: 239e440d30998da4af74095c75bdb501d3a3987d Message-Id: <20221017192041.9A4CB3858295@sourceware.org> Date: Mon, 17 Oct 2022 19:20:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D239e440d3099= 8da4af74095c75bdb501d3a3987d commit 239e440d30998da4af74095c75bdb501d3a3987d Author: Tom Tromey Date: Mon Oct 17 13:16:59 2022 -0600 kfail an Ada test for GCC < 12 =20 I noticed one particular Ada test was failing on Fedora 34, but works when I switch to GCC 12. This patch arranges to kfail the test when an older compiler is used. =20 I tested this with GCC 11, 12, and 13. I'm going to check it in. Diff: --- gdb/testsuite/gdb.ada/packed_array_assign.exp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdb/testsuite/gdb.ada/packed_array_assign.exp b/gdb/testsuite/= gdb.ada/packed_array_assign.exp index eef0d39b6a8..a0240fc17be 100644 --- a/gdb/testsuite/gdb.ada/packed_array_assign.exp +++ b/gdb/testsuite/gdb.ada/packed_array_assign.exp @@ -52,6 +52,12 @@ set re \ "\\(packed_array_assign_w =3D> 23," \ "packed_array_assign_x =3D> 7," \ "packed_array_assign_y =3D> 1\\)\\)"] + +# GNAT >=3D 12.0 has the needed fix here. +set zeros_expected [expr {![test_compiler_info {gcc-1[2-9]-*}]}] +set all_zeros \ + [string_to_regexp "((packed_array_assign_w =3D> 0, packed_array_assign= _x =3D> 0, packed_array_assign_y =3D> 0), (packed_array_assign_w =3D> 0, pa= cked_array_assign_x =3D> 0, packed_array_assign_y =3D> 0), (packed_array_as= sign_w =3D> 0, packed_array_assign_x =3D> 0, packed_array_assign_y =3D> 0))= "] + set re [join $re] gdb_test_multiple $cmd "value of pra" { -re -wrap $re { @@ -60,6 +66,12 @@ gdb_test_multiple $cmd "value of pra" { -re -wrap $kfail_int128support_re { kfail gdb/20991 $gdb_test_name } + -re -wrap $all_zeros { + if {$zeros_expected} { + setup_kfail "GCC 12 needed" *-*-* + } + fail $gdb_test_name + } } =20 set cmd "print pra(1) :=3D pr"