]> git.ipfire.org Git - thirdparty/postgresql.git/commit
When a TAP file has non-zero exit status, retain temporary directories.
authorNoah Misch <noah@leadboat.com>
Wed, 5 Feb 2020 16:26:41 +0000 (08:26 -0800)
committerNoah Misch <noah@leadboat.com>
Wed, 5 Feb 2020 16:27:02 +0000 (08:27 -0800)
commitd8efc5900f7c0a952b7ff3f6e8d8ea2e77fe2986
treecd9f1d20006d007f7a27dbab9607ffcf8dbb2f62
parent80dece684f863862d68ba3cc726a4bde9d2ce568
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.GA3264196@rfd.leadboat.com
src/test/perl/TestLib.pm