aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/langs.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-01-06 07:34:44 -0700
committerTom Tromey <tromey@adacore.com>2022-01-06 07:54:30 -0700
commitd8504344d476f90bffca815b33b69fd778677478 (patch)
tree96cfaaa8f155e09c8874047968f6c2e3fa03a44f /gdb/testsuite/gdb.base/langs.exp
parentffb864501ea53021f0bcedd6a8ffa440f5825efd (diff)
downloadgdb-d8504344d476f90bffca815b33b69fd778677478.zip
gdb-d8504344d476f90bffca815b33b69fd778677478.tar.gz
gdb-d8504344d476f90bffca815b33b69fd778677478.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/langs.exp')
-rw-r--r--gdb/testsuite/gdb.base/langs.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp
index 7d93875..134cde1 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"