From 177495c9073d6c70971c0a2dbf8f3933ead3015f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 19 Mar 2001 18:20:04 +0000 Subject: [PATCH] Document a native system printing output outside of the MI as a known bug. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.mi/mi-console.exp | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 06fcb63cb8..bfe41dfdef 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-03-19 Andrew Cagney + + * gdb.mi/mi-console.exp: Document ``Hello'' as a known bug. + 2001-03-12 Michael Chastain * gdb.c++/derivation.exp: Use the 'runto' library function. diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp index f960cebdac..04ee84166b 100644 --- a/gdb/testsuite/gdb.mi/mi-console.exp +++ b/gdb/testsuite/gdb.mi/mi-console.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1999, 2000 Cygnus Solutions. +# Copyright 1999, 2000, 2001 Cygnus Solutions. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -79,6 +79,17 @@ gdb_expect { -re "@\"H\"\r\n.*@\"e\"\r\n.*@\"l\"\r\n.*@\"l\"\r\n.*@\"o\"\r\n.*@\" \"\r\n.*@\"\\\\\\\\\"\r\n.*@\"\\\\\"\"\r\n.*@\"!\"\r\n.*@\"\\\\r\"\r\n.*@\"\\\\n\"\r\n" { pass "Hello message" } + -re "Hello" { + + # Probably a native system where GDB doesn't have direct + # control over the inferior console. + # For this to work, GDB would need to run the inferior process + # under a PTY and then use the even-loops ability to wait on + # multiple event sources to channel the output back through the + # MI. + + fail "Hello message (known bug)" + } timeout { fail "Hello message (timeout)" }