Thu Jul 20 11:40:13 1995 Jeff Law (law@snake.cs.utah.edu)
+ * lib/gdb.exp: Provide default value for noinferiorio.
+ * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
+ the inferior.
+
* gdb.base/break.exp: Always check for a program already being
started after sending a "run" command to gdb.
(text_next_with_recursion): Don't check the output from the
+# Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+
+# 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+# Please email any bugs, comments, and/or additions to this file to:
+# bug-gdb@prep.ai.mit.edu
+
+if [info exists nointerrupts] {
+ if $nointerrupts {
+ verbose "Skipping interrupt.exp because of nointerrupts."
+ continue
+ }
+}
+
if $tracelevel then {
strace $tracelevel
}
set binfile $objdir/$subdir/interrupt
+if $noinferiorio {
+ verbose "Skipping interrupt.exp because of noinferiorio."
+ return
+}
+
+
if ![file exists $binfile] then {
perror "$binfile does not exist."
return 0
} else {
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile
- gdb_test "shell stty intr ^C" "" \
+ gdb_test "shell stty intr '^C'" "" \
"set interrupt character in interrupt.exp"
- if [runto main] then {
+ if [runto_main] then {
send "continue\n"
expect {
-re "\r\ntalk to me baby\r\n$" {}
setup_xfail "vax-*-*"
setup_xfail "alpha-*-*"
setup_xfail "*-*-irix*"
+ setup_xfail "*-*-hpux*"
fail "call function when asleep (stays asleep)"
# Send a newline to wake it up
send "\n"