pgsql: Use $Test::Builder::Level in TAP test functions - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Use $Test::Builder::Level in TAP test functions
Date
Msg-id E1fZa6q-0005cW-VW@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

Branch
------
master

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

Modified Files
--------------
src/bin/pg_rewind/RewindTest.pm |  2 ++
src/test/perl/PostgresNode.pm   | 10 ++++++++++
src/test/perl/TestLib.pm        | 11 +++++++++++
src/test/ssl/ServerSetup.pm     |  4 ++++
4 files changed, 27 insertions(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Use optimized bitmap set function for membership test inpostgre
Next
From: Michael Paquier
Date:
Subject: pgsql: Add tests for inheritance trees mixing permanent and temporaryr