This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH, RFA]: Skip mi test when UI_OUT but mi support isn't present
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH, RFA]: Skip mi test when UI_OUT but mi support isn't present
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Sat, 20 Jan 2001 23:27:47 +0100
- CC: cagney at cygnus dot com
Ever since the switch to UI_OUT, the mi tests are no longer skipped if
mi support wasn't compiled in. The attached patch fixes this. I left
the pre-UI_OUT stuff in since it is still possible to compile GDB
wuithout UI_OUT.
Mark
2001-01-20 Mark Kettenis <kettenis@gnu.org>
* mi-support.exp (mi_gdb_start): Skip mi tests if -i flag is
recognized (i.e. if GDB was compiled with UI_OUT, but the mi
interpreter wasn't recognized (because it wasn't compiled in).
Index: testsuite/lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.3
diff -u -p -r1.3 mi-support.exp
--- mi-support.exp 2000/12/20 21:24:28 1.3
+++ mi-support.exp 2001/01/20 22:24:58
@@ -135,6 +135,11 @@ proc mi_gdb_start { } {
remote_close host;
return -1;
}
+ -re ".*Interpreter `mi' unrecognized." {
+ untested "Skip mi tests (not compiled with mi support)."
+ remote_close host;
+ return -1;
+ }
timeout {
perror "(timeout) GDB never initialized after 10 seconds."
remote_close host;