From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32A4038708A2; Sat, 15 Aug 2020 06:10:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32A4038708A2 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug rust/26197] rust FAILs with rustc 1.36.0 and llvm 7 Date: Sat, 15 Aug 2020 06:10:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: rust X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 10.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2020 06:10:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26197 --- Comment #23 from Tom de Vries --- (In reply to Tom Tromey from comment #22) > Please try this. I can't test it myself. >=20 > diff --git a/gdb/testsuite/gdb.rust/simple.exp > b/gdb/testsuite/gdb.rust/simple.exp > index f0cad4e7634..f057d2a071a 100644 > --- a/gdb/testsuite/gdb.rust/simple.exp > +++ b/gdb/testsuite/gdb.rust/simple.exp > @@ -239,7 +239,8 @@ gdb_test "print .." " =3D .*::ops::RangeFull" >=20=20 > set pass_pattern \ > " =3D > core::option::Option<\[a-z\]+::string::String>::Some\\(\[a-z\]+::string:: > String .*" > -set xfail_pattern " =3D " > +set xfail_pattern \ > + " =3D (|That operation is not available on .= *)" > gdb_test_multiple "print str_some" "" { > -re "\[\r\n\]*(?:$pass_pattern)\[\r\n\]+$gdb_prompt $" { > pass $gdb_test_name >=20 >=20 > Also available on my github, branch submit/pr-26197-xfails With this additional change: ... diff --git a/gdb/testsuite/gdb.rust/simple.exp b/gdb/testsuite/gdb.rust/simple.exp index f057d2a071..b32eaf1e4d 100644 --- a/gdb/testsuite/gdb.rust/simple.exp +++ b/gdb/testsuite/gdb.rust/simple.exp @@ -240,7 +240,7 @@ gdb_test "print .." " =3D .*::ops::RangeFull" set pass_pattern \ " =3D core::option::Option<\[a-z\]+::string::String>::Some\\(\[a-z\]+::string::St= ring .*" set xfail_pattern \ - " =3D (|That operation is not available on .*)" + "( =3D |That operation is not available on .*)" gdb_test_multiple "print str_some" "" { -re "\[\r\n\]*(?:$pass_pattern)\[\r\n\]+$gdb_prompt $" { pass $gdb_test_name ... we have: ... FAIL: gdb.rust/simple.exp: python print(gdb.lookup_type('simple::MoreComplicated').dynamic) =3D=3D=3D gdb Summary =3D=3D=3D # of expected passes 301 # of unexpected failures 1 # of expected failures 5 # of untested testcases 1 # of paths in test names 1 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=