pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use $Test::Builder::Level in TAP test functions
Date: Sun, 01 Jul 2018 11:01:36 +0000
Message-ID: <E1fZa6q-0005cW-VW@gemulon.postgresql.org> (raw)

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(+)



Message-ID: <E1fZa6q-0005cW-VW@gemulon.postgresql.org>
Permalink:  ../E1fZa6q-0005cW-VW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fZa6q-0005cW-VW@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Use $Test::Builder::Level in TAP test functions
  In-Reply-To: <E1fZa6q-0005cW-VW@gemulon.postgresql.org>
  References: <E1fZa6q-0005cW-VW@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox