[PATCH] [gdb/testsuite] Fix expected output in gdb.base/langs.exp
Natarajan, Kavitha
Kavitha.Natarajan@amd.com
Mon Oct 25 09:03:04 GMT 2021
[AMD Official Use Only]
Hi all,
Please review the changes to fix the gdb.base/langs.exp test failure when absolute path of the file name is printed.
Problem description:
gdb.base/langs.exp test fails due to mismatch in actual output against the
expected output when absolute path is printed instead of only the file name.
Fix:
Fixed gdb.base/langs.exp to accept absolute path as well.
---
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 631401a8eab..0dc9181a4e5 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 \\(.*<file://(.*>" \
+ gdb_test "up" ".* in (foo|$foo_func).* at .*langs2\\.$ext.*return csub \\(.*<file://(.*>" \
"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 \\(.*<file://(.*>" \
+ gdb_test "up" ".* in cppsub_ .* at .*langs2\\.$ext.*return foo \\(.*<file://(.*>" \
"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"
--
Regards,
Kavitha
More information about the Gdb-patches
mailing list