]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: don't let SIGTTOU/TTIN hang a backgrounded "make check"
authorJim Meyering <meyering@redhat.com>
Sat, 21 Feb 2009 10:30:41 +0000 (11:30 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 21 Feb 2009 15:52:39 +0000 (16:52 +0100)
Running "make check &" would hang due to SIGTTOU and SIGTTIN signals.
* tests/misc/stty: Ignore SIGTTOU.
* tests/misc/stty-invalid: Likewise.
* tests/mv/i-3: Ignore SIGTTIN.

tests/misc/stty
tests/misc/stty-invalid
tests/mv/i-3

index c53f6c40ae9f0be5bb2831ab144b8855c5b50b60..b607ec08c3dc4f654481c7b42dbc1af68f02fff5 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Make sure stty can parse most of its options.
 
-# Copyright (C) 1998-2004, 2006-2008 Free Software Foundation, Inc.
+# Copyright (C) 1998-2004, 2006-2009 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
@@ -24,6 +24,7 @@ fi
 # Make sure there's a tty on stdin.
 . $srcdir/test-lib.sh
 require_controlling_input_terminal_
+trap '' TTOU # Ignore SIGTTOU
 
 # The following list of reversible options was generated with
 # grep -w REV stty.c|sed -n '/^  {"/{s//REV_/;s/".*/=1/;p;}'|fmt
index 47531c533be1a592564b0e6595f36936d5c9dfaf..d9f077779fa5bd1018ef697b1222695c79ac5f34 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that stty diagnoses invalid inputs, rather than silently misbehaving.
 
-# Copyright (C) 2007-2008 Free Software Foundation, Inc.
+# Copyright (C) 2007-2009 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
@@ -23,6 +23,7 @@ fi
 
 . $srcdir/test-lib.sh
 require_controlling_input_terminal_
+trap '' TTOU # Ignore SIGTTOU
 
 fail=0
 
index b9cd7d9ed882c19899b9a766fece450ab2d5c6a0..d1f119c42ce714397f66923cb46c3b9d42bbfcc8 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure that `mv file unwritable-file' prompts the user
 # and that `mv -f file unwritable-file' doesn't.
 
-# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2009 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
@@ -25,6 +25,7 @@ fi
 . $srcdir/test-lib.sh
 require_controlling_input_terminal_
 skip_if_root_
+trap '' TTIN # Ignore SIGTTIN
 
 touch f g h i || framework_failure
 chmod 0 g i || framework_failure