* lib/gdb.exp: Provide default value for noinferiorio.
authorJeff Law <law@redhat.com>
Thu, 20 Jul 1995 18:27:55 +0000 (18:27 +0000)
committerJeff Law <law@redhat.com>
Thu, 20 Jul 1995 18:27:55 +0000 (18:27 +0000)
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
the inferior.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/interrupt.exp

index a294edad14bc9a13231373678f46430c06ad7e69..1a4447f90cd3f434eef7a5f7fdd56089ea21e936 100644 (file)
@@ -1,5 +1,9 @@
 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
index 522d8f8942a1621b770d281e4681bc61c07c3c8a..1ffed591deaa6cef95d635d0b30a8046670fd60f 100644 (file)
@@ -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"
This page took 0.029726 seconds and 4 git commands to generate.