This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 2/3] Add a better diagnostic message in mi_gdb_test
- From: Marc-Andre Laperle <marc-andre dot laperle at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Marc-Andre Laperle <marc-andre dot laperle at ericsson dot com>
- Date: Fri, 3 Feb 2017 12:15:33 -0500
- Subject: [PATCH v2 2/3] Add a better diagnostic message in mi_gdb_test
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=marc-andre dot laperle at ericsson dot com;
- References: <1473712054-30417-1-git-send-email-marc-andre.laperle@ericsson.com> <20170203171534.18139-1-marc-andre.laperle@ericsson.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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>
---
gdb/testsuite/lib/mi-support.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 7c23922..5682b7e 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -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
}
--
2.9.3