]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
self tests: sanity check on 'is_blocked_signal' function
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 6 Sep 2011 16:06:35 +0000 (18:06 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 6 Sep 2011 16:06:35 +0000 (18:06 +0200)
* tests/self-check-is-blocked-signal.tap: New test.
* tests/list-of-tests.mk: Update.

ChangeLog
tests/Makefile.in
tests/list-of-tests.mk
tests/self-check-is-blocked-signal.tap [new file with mode: 0755]

index 9e8e6df339b4d8bb3e99abfcd0822057ec68bfe8..a3ea13aaef64bf923cc4674406ca19fdf9a81693 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       self tests: sanity check on 'is_blocked_signal' function
+       * tests/self-check-is-blocked-signal.tap: New test.
+       * tests/list-of-tests.mk: Update.
+
 2011-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: fix spurious failures due to ignored signals
index e2d3af89b8970d17a3dd84277d5affa1a7e4b157..b56a018d1d4cb236b16e1b116daaa3689d78aa02 100644 (file)
@@ -1134,6 +1134,7 @@ self-check-reexec.test \
 self-check-report.test \
 self-check-sanity.test \
 self-check-seq.test \
+self-check-is-blocked-signal.tap \
 self-check-tap.test \
 self-check-unindent.test \
 sanity.test \
index 073c06c3406ce997230a2570049f452e1cd4a68a..abcb6989d1ec465b721046785a6536b34b1f4f04 100644 (file)
@@ -809,6 +809,7 @@ self-check-reexec.test \
 self-check-report.test \
 self-check-sanity.test \
 self-check-seq.test \
+self-check-is-blocked-signal.tap \
 self-check-tap.test \
 self-check-unindent.test \
 sanity.test \
diff --git a/tests/self-check-is-blocked-signal.tap b/tests/self-check-is-blocked-signal.tap
new file mode 100755 (executable)
index 0000000..ba20488
--- /dev/null
@@ -0,0 +1,29 @@
+#! /bin/sh
+# Copyright (C) 2011 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, 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, see <http://www.gnu.org/licenses/>.
+
+# Sanity check for the automake testsuite: the `signal_is_blocked'
+# shell function.
+
+am_create_testdir=no
+. ./defs || Exit 99
+
+plan_ 2
+
+command_ok_ "unblockable signal 9" not is_blocked_signal 9
+trap "" 13
+command_ok_ "blocked signal 13" is_blocked_signal 13
+
+: