[gdb/testsuite] Fix info-types.exp for debug info from more than one file
On openSUSE Leap 15.0, I get: ... FAIL: gdb.base/info-types.exp: l=c: info types FAIL: gdb.base/info-types.exp: l=c++: info types ... because the info type command prints info for files info-types.c, stddef.h, elf-init.c and init.c, while the regexp in the test-case expect only info for info-types.c. Fix this by extending the regexp. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-07-24 Tom de Vries <tdevries@suse.de> * gdb.base/info-types.exp: Allow info types to print info for more than one file.
This commit is contained in:
parent
407bcc63bd
commit
c76ddaa3f4
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2019-07-24 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* gdb.base/info-types.exp: Allow info types to print info for more than
|
||||||
|
one file.
|
||||||
|
|
||||||
2019-07-23 Tom de Vries <tdevries@suse.de>
|
2019-07-23 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
PR testsuite/24842
|
PR testsuite/24842
|
||||||
|
|
|
@ -86,7 +86,9 @@ proc run_test { lang } {
|
||||||
"19:\[\t \]+typedef float nested_float_t;" \
|
"19:\[\t \]+typedef float nested_float_t;" \
|
||||||
"18:\[\t \]+typedef int nested_int_t;" \
|
"18:\[\t \]+typedef int nested_int_t;" \
|
||||||
"62:\[\t \]+typedef union_t nested_union_t;" \
|
"62:\[\t \]+typedef union_t nested_union_t;" \
|
||||||
"\[\t \]+unsigned int"]
|
"\[\t \]+unsigned int(" \
|
||||||
|
"" \
|
||||||
|
"File .*:.*)?" ]
|
||||||
} else {
|
} else {
|
||||||
set output_re \
|
set output_re \
|
||||||
[multi_line \
|
[multi_line \
|
||||||
|
@ -116,7 +118,9 @@ proc run_test { lang } {
|
||||||
"18:\[\t \]+typedef int nested_int_t;" \
|
"18:\[\t \]+typedef int nested_int_t;" \
|
||||||
"62:\[\t \]+typedef union union_t nested_union_t;" \
|
"62:\[\t \]+typedef union union_t nested_union_t;" \
|
||||||
"56:\[\t \]+union union_t;" \
|
"56:\[\t \]+union union_t;" \
|
||||||
"\[\t \]+unsigned int" ]
|
"\[\t \]+unsigned int(" \
|
||||||
|
"" \
|
||||||
|
"File .*:.*)?" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "info types" $output_re
|
gdb_test "info types" $output_re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue