When a TAP file has non-zero exit status, retain temporary directories. PostgresNode already retained base directories in such cases. Stop using $SIG{__DIE__}, which is redundant with the exit status check, in lieu of proliferating it to TestLib. Back-patch to 9.6, where commit 88802e068017bee8cea7a5502a712794e761c7b5 introduced retention on failure.
Reviewed by Daniel Gustafsson. Discussion: https://postgr.es/m/20200202170155.ga3264...@rfd.leadboat.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d8efc5900f7c0a952b7ff3f6e8d8ea2e77fe2986 Modified Files -------------- src/test/perl/TestLib.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)