public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Fix some failures in langs.exp
Date: Thu,  6 Jan 2022 14:57:36 +0000 (GMT)	[thread overview]
Message-ID: <20220106145736.CA7483858020@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d8504344d476f90bffca815b33b69fd778677478

commit d8504344d476f90bffca815b33b69fd778677478
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Jan 6 07:34:44 2022 -0700

    Fix some failures in langs.exp
    
    langs.exp currently has some fails for me because the stack trace
    includes full paths to the source files.
    
        FAIL: gdb.base/langs.exp: up to foo in langs.exp
        FAIL: gdb.base/langs.exp: up to cppsub_ in langs.exp
        FAIL: gdb.base/langs.exp: up to fsub in langs.exp
    
    This fixes the failures by making the filename regexps a bit more lax.

Diff:
---
 gdb/testsuite/gdb.base/langs.exp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp
index 7d93875edf9..134cde1f6b5 100644
--- a/gdb/testsuite/gdb.base/langs.exp
+++ b/gdb/testsuite/gdb.base/langs.exp
@@ -64,20 +64,20 @@ if [runto csub] then {
 
     if { !$isfixed } { set lang c\\+\\+; set ext cxx }
     if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" }
-    gdb_test "up" ".* in (foo|$foo_func).* at langs2\\.$ext.*return csub \\(.*" \
+    gdb_test "up" ".* in (foo|$foo_func).* at .*langs2\\.$ext.*return csub \\(.*" \
 	"up to foo in langs.exp"
     gdb_test "show language" "currently $lang.*" \
 	"show language at foo in langs.exp"
 
     if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" }
-    gdb_test "up" ".* in cppsub_ .* at langs2\\.$ext.*return foo \\(.*" \
+    gdb_test "up" ".* in cppsub_ .* at .*langs2\\.$ext.*return foo \\(.*" \
 	"up to cppsub_ in langs.exp"
     gdb_test "show language" "currently $lang.*" \
 	"show language at cppsub_ in langs.exp"
 
     if { !$isfixed } { set lang fortran }
     if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" }
-    gdb_test "up" ".* in fsub.* at langs1\\.f.*" \
+    gdb_test "up" ".* in fsub.* at .*langs1\\.f.*" \
 	"up to fsub in langs.exp"
     gdb_test "show language" "currently $lang.*" \
 	"show language at fsub in langs.exp"


                 reply	other threads:[~2022-01-06 14:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220106145736.CA7483858020@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).