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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't clobber test exit code at cleanup in LDAP/Kerberors tests
Date: 2024-04-07 17:31:31
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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/[email protected]

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3d5a9bb8df65ac6446ae5ad769c0adc5f332c164

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-04-07 17:52:28 Re: pgsql: Use bump memory context for tuplesorts
Previous Message Andres Freund 2024-04-07 17:26:15 Re: pgsql: Reduce branches in heapgetpage()'s per-tuple loop