]> granicus.if.org Git - postgresql/commit
Use $Test::Builder::Level in TAP test functions
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 22 May 2018 18:25:01 +0000 (14:25 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 1 Jul 2018 10:58:32 +0000 (12:58 +0200)
commitc4309f4aeeae54e4c5281d68e29288af1d0d1ed2
tree706fa479aa19f3128ee71ef8c0884569204dd04a
parent65782346a4812482bfb09f9e1117c908146e67b5
Use $Test::Builder::Level in TAP test functions

In TAP test functions, that is, those that produce test results, locally
increment $Test::Builder::Level.  This has the effect that test failures
are reported at the callers location rather than somewhere in the test
support libraries.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
src/bin/pg_rewind/RewindTest.pm
src/test/perl/PostgresNode.pm
src/test/perl/TestLib.pm
src/test/ssl/ServerSetup.pm