* [pushed] [gdb/testsuite] Fix gdb.dwarf2/dw2-gas-workaround.exp
@ 2023-11-06 7:33 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-11-06 7:33 UTC (permalink / raw)
To: gdb-patches
Recently added test-case gdb.dwarf2/dw2-gas-workaround.exp:
- passes when gdb is configured using $(cd ../src; pwd)/configure, but
- fails when using ../src/configure.
Fix this by making the matching more precise:
...
- -re -wrap "$objdir.*" {
+ -re -wrap "name_for_id = $objdir/$srcfile\r\n.*" {
...
such that we only fail on the line:
...
[symtab-create] start_subfile: name = dw2-lines.c, name_for_id = \
/data/vries/gdb/leap-15-4/build/gdb/testsuite/dw2-lines.c^M
...
Reported-By: Carl Love <cel@us.ibm.com>
---
gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp b/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
index ca2b10f23b3..7d5375a920a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
@@ -83,7 +83,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
gdb_test_no_output "set debug symtab-create 1"
gdb_test_multiple "ptype bar" "" {
- -re -wrap "$objdir.*" {
+ -re -wrap "name_for_id = $objdir/$srcfile\r\n.*" {
fail $gdb_test_name
}
-re -wrap "" {
base-commit: ae86085027a5590a7ada130dd55e652772e0ce84
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-06 7:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 7:33 [pushed] [gdb/testsuite] Fix gdb.dwarf2/dw2-gas-workaround.exp Tom de Vries
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).