From af6352fd3d75e92cc9e476a14d902527f67f71ef Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 6 Sep 2011 18:06:35 +0200 Subject: [PATCH] self tests: sanity check on 'is_blocked_signal' function * tests/self-check-is-blocked-signal.tap: New test. * tests/list-of-tests.mk: Update. --- ChangeLog | 6 ++++++ tests/Makefile.in | 1 + tests/list-of-tests.mk | 1 + tests/self-check-is-blocked-signal.tap | 29 ++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100755 tests/self-check-is-blocked-signal.tap diff --git a/ChangeLog b/ChangeLog index 9e8e6df33..a3ea13aae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-09-06 Stefano Lattarini + + 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 tests: fix spurious failures due to ignored signals diff --git a/tests/Makefile.in b/tests/Makefile.in index e2d3af89b..b56a018d1 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -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 \ diff --git a/tests/list-of-tests.mk b/tests/list-of-tests.mk index 073c06c34..abcb6989d 100644 --- a/tests/list-of-tests.mk +++ b/tests/list-of-tests.mk @@ -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 index 000000000..ba204886c --- /dev/null +++ b/tests/self-check-is-blocked-signal.tap @@ -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 . + +# 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 + +: -- 2.47.2