diff options
author | Tom de Vries <tdevries@suse.de> | 2019-09-19 19:54:15 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-09-19 19:54:15 +0200 |
commit | e452e88f54624ae55d534c4ae32e0c768cb4b59f (patch) | |
tree | 4e03a8fdd9128df26846802e823bf146ae0bc3ea /bfd/version.h | |
parent | f64e2f4045485f99b4ce6649fdab874dacccd5a6 (diff) | |
download | gdb-e452e88f54624ae55d534c4ae32e0c768cb4b59f.zip gdb-e452e88f54624ae55d534c4ae32e0c768cb4b59f.tar.gz gdb-e452e88f54624ae55d534c4ae32e0c768cb4b59f.tar.bz2 |
[gdb/testsuite] Don't use FOOBAR pattern in gdb_test
If gdb_test is used with fewer than five arguments, then the question_string
defaults to "^FOOBAR$":
...
if [llength $args]==5 {
set question_string [lindex $args 3]
set response_string [lindex $args 4]
} else {
set question_string "^FOOBAR$"
}
...
This can however match "FOOBAR", so perhaps "\$FOOBAR^" would have been a
better choice.
Eliminate the FOOBAR pattern from gdb_test by instead of defining a default
regexp, conditionally appending the regexp matching to a user_code variable.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-09-19 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (gdb_test): Eliminate "^FOOBAR$" pattern.
Diffstat (limited to 'bfd/version.h')
0 files changed, 0 insertions, 0 deletions