From 46e8d4117ab78b5d378426584f02c4035d37998c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 20 Jul 1995 18:27:55 +0000 Subject: * 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/testsuite/gdb.base/interrupt.exp | 37 ++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite/gdb.base/interrupt.exp') 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" -- cgit v1.1