[HACKERS] Show backtrace when tap tests fail - Mailing list pgsql-hackers

From Andres Freund
Subject [HACKERS] Show backtrace when tap tests fail
Date
Msg-id 20170919173126.fcevi4cmkjtq6ysi@alap3.anarazel.de
Whole thread Raw
Responses Re: [HACKERS] Show backtrace when tap tests fail
List pgsql-hackers
Hi,

I've had a couple cases where tap tests died, and I couldn't easily see
where / why. For development of a new test I found it useful to show
backtraces in that case - just adding a
use Carp::Always;
at the start of the relevant module did the trick.

I'm wondering if we shouldn't always do so if the module is
installed. I.e. have PostgresNode or something do something like

# Include module showing backtraces upon failures. As it's a
non-standard module, don't fail if not installed.
eval { use Carp::Always; }

Comments?

- Andres


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [GENERAL] [HACKERS] USER Profiles for PostgreSQL
Next
From: Melvin Davidson
Date:
Subject: Re: [GENERAL] [HACKERS] USER Profiles for PostgreSQL