Add a better diagnostic message in mi_gdb_test
When using mi_gdb_test, if it fails because of the presence of unexpected output, the error message is only the message passed as the argument with no indication that there was an unexpected output. This change adds an additional text to the failure message to indicate that there was an unexpected output. gdb/testsuite/ChangeLog: * lib/mi-support.exp (mi_gdb_test): Add additional message for unexpected output. Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
e696b3ad34
commit
5b291c0496
|
@ -1,3 +1,8 @@
|
|||
2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
|
||||
|
||||
* lib/mi-support.exp (mi_gdb_test): Add additional message
|
||||
for unexpected output.
|
||||
|
||||
2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||
|
||||
* gdb.base/examine-backward.c (Barrier): New character array
|
||||
|
|
|
@ -824,7 +824,7 @@ proc mi_gdb_test { args } {
|
|||
}
|
||||
-re ".*$mi_gdb_prompt\[ \]*$" {
|
||||
if ![string match "" $message] then {
|
||||
fail "$message"
|
||||
fail "$message (unexpected output)"
|
||||
}
|
||||
set result 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue