aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/interrupt.exp
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-07-20 18:27:55 +0000
committerJeff Law <law@redhat.com>1995-07-20 18:27:55 +0000
commit46e8d4117ab78b5d378426584f02c4035d37998c (patch)
tree1359a8825d279e8c2d0b518d5e010a83c91f7708 /gdb/testsuite/gdb.base/interrupt.exp
parentdfdcff13c0df6370c4432d7230e4d63c8950484f (diff)
downloadgdb-46e8d4117ab78b5d378426584f02c4035d37998c.zip
gdb-46e8d4117ab78b5d378426584f02c4035d37998c.tar.gz
gdb-46e8d4117ab78b5d378426584f02c4035d37998c.tar.bz2
* lib/gdb.exp: Provide default value for noinferiorio.
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from the inferior.
Diffstat (limited to 'gdb/testsuite/gdb.base/interrupt.exp')
-rw-r--r--gdb/testsuite/gdb.base/interrupt.exp37
1 files changed, 35 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/interrupt.exp b/gdb/testsuite/gdb.base/interrupt.exp
index 522d8f8..1ffed59 100644
--- a/gdb/testsuite/gdb.base/interrupt.exp
+++ b/gdb/testsuite/gdb.base/interrupt.exp
@@ -1,3 +1,29 @@
+# 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
}
@@ -7,15 +33,21 @@ set bug_id 0
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$" {}
@@ -63,6 +95,7 @@ if ![file exists $binfile] then {
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"