public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Andres Freund <[email protected]>
Cc: [email protected]
Subject: Re: bailing out in tap tests nearly always a bad idea
Date: Sun, 13 Feb 2022 18:32:59 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Andres Freund <[email protected]> writes:
> Does anybody want to defend / explain the use of BAIL_OUT? If not, I think we
> should consider doing a global replace of the use of bailing.
+1
> Best with a
> central function signalling fatal error, rather than individual uses of die
> or such.
Huh, doesn't Test::More already provide a sane way to do this?
If not, why isn't die() good enough? (I don't think you can
realistically expect to prohibit die() anywhere in the TAP tests.)
regards, tom lane
view thread (3+ messages)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: bailing out in tap tests nearly always a bad idea
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox