nptl: Avoid expected SIGALRM in most tests [BZ #20432]
commit7e625f7e85b4e88f10dbde35a0641742af581806
authorFlorian Weimer <fweimer@redhat.com>
Fri, 26 Aug 2016 17:27:16 +0000 (26 19:27 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 26 Aug 2016 17:40:17 +0000 (26 19:40 +0200)
tree9548c7d75393d1b9cd033ea0c875936bee6f9a52
parent0ac8ee53e8efbfd6e1c37094b4653f5c2dad65b5
nptl: Avoid expected SIGALRM in most tests [BZ #20432]

Before this change, several tests did not detect early deadlocks
because they used SIGALRM as the expected signal, and they ran
for the full default TIMEOUT seconds.

This commit adds a new delayed_exit function to the test skeleton,
along with several error-checking wrappers to pthread functions.
Additional error checking is introduced into several tests.
15 files changed:
ChangeLog
nptl/tst-cond3.c
nptl/tst-eintr1.c
nptl/tst-eintr2.c
nptl/tst-eintr3.c
nptl/tst-eintr4.c
nptl/tst-eintr5.c
nptl/tst-exit2.c
nptl/tst-exit3.c
nptl/tst-mutex6.c
nptl/tst-rwlock5.c
nptl/tst-sem2.c
nptl/tst-spin3.c
nptl/tst-stdio1.c
test-skeleton.c