diff options
author | Tom de Vries <tdevries@suse.de> | 2023-11-06 08:32:54 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-11-06 08:32:54 +0100 |
commit | a3f007ea284e971e5472b8ec4f90be3711a2aa4c (patch) | |
tree | e3e58e556a4bb4f815089316f42ecec8f10ca634 /gdb/testsuite | |
parent | ae86085027a5590a7ada130dd55e652772e0ce84 (diff) | |
download | gdb-a3f007ea284e971e5472b8ec4f90be3711a2aa4c.zip gdb-a3f007ea284e971e5472b8ec4f90be3711a2aa4c.tar.gz gdb-a3f007ea284e971e5472b8ec4f90be3711a2aa4c.tar.bz2 |
[gdb/testsuite] Fix gdb.dwarf2/dw2-gas-workaround.exp
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>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp b/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp index ca2b10f..7d5375a 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 "" { |