aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/nsintrall.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-09-10 17:16:48 +0200
committerTom de Vries <tdevries@suse.de>2021-09-10 17:16:48 +0200
commite36788d135499f18ffc7e528c5ac4bd5a560a5b9 (patch)
tree169b249750d7b821f4a77e0b165f8cd9ae636437 /gdb/testsuite/gdb.mi/nsintrall.c
parentca4987847046f288573278237673ded42a2dead8 (diff)
downloadgdb-e36788d135499f18ffc7e528c5ac4bd5a560a5b9.zip
gdb-e36788d135499f18ffc7e528c5ac4bd5a560a5b9.tar.gz
gdb-e36788d135499f18ffc7e528c5ac4bd5a560a5b9.tar.bz2
[gdb/testsuite] Fix handling of nr_args < 3 in mi_gdb_test
The documentation of mi_gdb_test states that the command, pattern and message arguments are mandatory: ... # mi_gdb_test COMMAND PATTERN MESSAGE [IPATTERN] -- send a command to gdb; # test the result. ... However, this is not checked, and when mi_gdb_test is called with less than 3 arguments, it passes or fails silently. Fix this by using the following semantics: - if there are 1 or 2 arguments, use the command as the message. - if there is 1 argument, use ".*" as the pattern. - if there are no or too much arguments, error out. Fix a PATH issue in gdb.mi/mi-logging.exp, introduced by using the command as message. Fix a few other trivial-looking FAILs. There are 11 less trivial-looking FAILs left in gdb.mi in test-cases: - mi-nsmoribund.exp - mi-breakpoint-changed.exp - mi-break.exp. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.mi/nsintrall.c')
0 files changed, 0 insertions, 0 deletions