From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use $Test::Builder::Level in TAP test functions |
Date: | 2018-07-01 11:01:36 |
Message-ID: | E1fZa6q-0005cW-VW@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)iki(dot)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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-07-01 11:29:17 | pgsql: Add tests for inheritance trees mixing permanent and temporary r |
Previous Message | Michael Paquier | 2018-07-01 06:10:44 | pgsql: Use optimized bitmap set function for membership test in postgre |