]> git.ipfire.org Git - thirdparty/gnutls.git/commit
tests: treat all signals as error
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 3 Jan 2019 08:51:34 +0000 (09:51 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 4 Jan 2019 16:12:43 +0000 (17:12 +0100)
commit81f8d97b3486928048bb8ad701b4af62ddce9901
tree2b072a5b2e41ed38fbd052b73a07f1c7c54f21b8
parentb978a25de5ef06754bf94bdfb2e6442b7fb6f1fa
tests: treat all signals as error

Previously we were only treating SIGSEGV as error though there is
no reason to treat other signals as success and they may hide an
actual error case (e.g., when SIGPIPE is received). With this change we
treat any signals received by the child except SIGTERM as error, and
we ensure that SIGPIPE is ignored in all tests.

This also updates tests/slow/cipher-api-test.c to test failures with
SIGABRT or otherwise consistently.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
12 files changed:
tests/alpn-server-prec.c
tests/key-material-set-dtls.c
tests/mini-alpn.c
tests/mini-dtls-discard.c
tests/mini-dtls-heartbeat.c
tests/mini-dtls-record.c
tests/mini-dtls-srtp.c
tests/mini-record-failure.c
tests/prf.c
tests/psk-file.c
tests/slow/cipher-api-test.c
tests/utils.h