Re: Readd use of TAP subtests

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Readd use of TAP subtests
Дата
Msg-id 3654396.1638977132@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Readd use of TAP subtests  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Readd use of TAP subtests  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 12/8/21 09:08, Dagfinn Ilmari Mannsåker wrote:
>> Either way, I think we should be switching tests to done_testing()
>> whenever it would otherwise have to adjust the test count, to avoid
>> having to do that again and again and again going forward.

> I'm not so sure. I don't think its necessarily a bad idea to have to
> declare how many tests you're going to run.

I think the main point is to make sure that the test script reached an
intended exit point, rather than dying early someplace.  It's not apparent
to me why reaching a done_testing() call is a less reliable indicator of
that than executing some specific number of tests --- and I agree with
ilmari that maintaining the test count is a serious PITA.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Appetite for Frama-C annotations?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: suboverflowed subtransactions concurrency performance optimize