diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-09-06 17:37:32 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2011-09-06 17:37:32 +0200 |
commit | c605c816f97609c6b55765a1c8916fdb082dccca (patch) | |
tree | 61d432b4cd243346e57c151b6c0eb0757815a26c /tests/defs | |
parent | 371bdf6bf8b61c3b78c8915068b5b806ec2b62cf (diff) | |
parent | e1177186ff44b11d6c14d74637bb2564b84151d0 (diff) | |
download | automake-c605c816f97609c6b55765a1c8916fdb082dccca.tar.gz |
Merge branch 'master' into test-protocols
* master:
tests: fix spurious failures due to ignored signals
Diffstat (limited to 'tests/defs')
-rw-r--r-- | tests/defs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/defs b/tests/defs index 5f7a0a1f9..ad0490bf8 100644 --- a/tests/defs +++ b/tests/defs @@ -152,6 +152,15 @@ is_newest () test -z "$is_newest_files" } +# is_blocked_signal SIGNAL-NUMBER +# -------------------------------- +# Return success if the given signal number is blocked in the shell, +# return a non-zero exit status and print a proper diagnostic otherwise. +is_blocked_signal () +{ + $SHELL -c "kill -$1 \$\$; echo '$me: signal $1 seems blocked'" +} + # AUTOMAKE_run status [options...] # -------------------------------- # Run Automake with OPTIONS, and fail if automake |