selftest: teardown the environments also on getting SIGPIPE
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Jul 2014 12:28:56 +0000 (14:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 11 Jul 2014 14:19:07 +0000 (16:19 +0200)
commitb2803950fc439017680069813fc49255a3f0cbbf
treec8c780315ccfddb31ab108d2777096d5c9a607b4
parenta6523d78c347acf56b921edbc2276131b12a51aa
selftest: teardown the environments also on getting SIGPIPE

make test uses

selftest.pl | subuntu-filter.py ...

FAIL_IMMEDIATELY=1 lets subuntu-filter.py exit,
which generates SIGPIPE in selftest.pl.

We should handle this just like any other signal
and teardown all environments.

This should make the teardown process more reliable/verbose.

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
selftest/selftest.pl