Thread: [MASSMAIL] pgsql: Don't clobber test exit code at cleanup in LDAP/Kerberors tests

Don't clobber test exit code at cleanup in LDAP/Kerberors tests

If the test script die()d before running the first test, the whole test
was interpreted as SKIPped rather than failed. The PostgreSQL::Cluster
module got this right.

Backpatch to all supported versions.

Discussion: https://www.postgresql.org/message-id/fb898a70-3a88-4629-88e9-f2375020061d@iki.fi

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dfe402f955be8e7676e4da86517b8cdf75a072a2

Modified Files
--------------
src/test/kerberos/t/001_auth.pl | 7 ++++++-
src/test/ldap/LdapServer.pm     | 5 +++++
2 files changed, 11 insertions(+), 1 deletion(-)