Re: bailing out in tap tests nearly always a bad idea

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: bailing out in tap tests nearly always a bad idea
Дата
Msg-id CA+TgmobNofXrdsgujZNedyhO5=GNk_t6zfB4PMDUWnbS5e=FaA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: bailing out in tap tests nearly always a bad idea  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Feb 13, 2022 at 6:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.)

+1 for die. There's very little reason to use BAIL_OUT. If we agree
that we need a wrapper for die() for some reason, I can live with
that, too, but die is simple and familiar to perl programmers.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: bailing out in tap tests nearly always a bad idea
Следующее
От: Andres Freund
Дата:
Сообщение: Re: fixing bookindex.html bloat