* mi-support.exp (mi_gdb_start): Skip mi tests if -i flag is
authorMark Kettenis <kettenis@gnu.org>
Sun, 21 Jan 2001 15:07:05 +0000 (15:07 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 21 Jan 2001 15:07:05 +0000 (15:07 +0000)
recognized (i.e. if GDB was compiled with UI_OUT, but the mi
interpreter wasn't recognized (because it wasn't compiled in).

gdb/testsuite/gdb.mi/ChangeLog-mi
gdb/testsuite/lib/mi-support.exp

index 0802adf..cbe0e4f 100644 (file)
@@ -1,3 +1,9 @@
+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).
+
 Tue Apr 18 15:36:07 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * Makefile.in (clean mostlyclean): Do not delete $(MISCELLANEOUS).
index 6b3e3e7..d4c4cf0 100644 (file)
@@ -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;