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 2910254.1644861521@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Even just getting rid of the "Tests were run but no plan was declared and
> done_testing() was not seen." noise would be helpful. So I think using a fatal
> error routine that forced a failure to be recognized via ok(0, 'fatal error')
> and then does done_testing() would be better...

Maybe we could do something in an END block provided by Utils.pm?
I still think that insisting that people avoid die() is going to
be annoying.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Mark all GUC variable as PGDLLIMPORT
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: warn if GUC set to an invalid shared library