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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bailing out in tap tests nearly always a bad idea
Дата
Msg-id 2744434.1644795179@sss.pgh.pa.us
обсуждение исходный текст
Ответ на bailing out in tap tests nearly always a bad idea  (Andres Freund <andres@anarazel.de>)
Ответы Re: bailing out in tap tests nearly always a bad idea  (Andres Freund <andres@anarazel.de>)
Re: bailing out in tap tests nearly always a bad idea  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> 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



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: buildfarm warnings
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: xml_is_well_formed (was Re: buildfarm warnings)