Re: [HACKERS] pgbench tap tests & minor fixes.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] pgbench tap tests & minor fixes.
Дата
Msg-id 23100.1504617533@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] pgbench tap tests & minor fixes.  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
>>> I run the test, figure out the number it found in the resulting
>>> error message, and update the number in the source.

>> Yeah, but then what error is all that work protecting you from?

> I'm not sure I understand your point. I agree that Perl doing the counting 
> may hide issues. Now it is more of an incremental thing, if a test is 
> added the counter is upgraded accordingly, and the local consistency can 
> be checked.

Well, IIUC the point of "tests => nnn" is to protect against the
possibility that some coding mistake caused some of the tests to not
get run.  If you change the test script and then take Perl's word for
what nnn should be, what protection have you got that you didn't introduce
such a mistake along with whatever your intended change was?  It seems
pointless to maintain the tests count that way.

> Anyway, as some tests may have to be skipped on some platforms, it seems 
> that the done_testing approach is sounder. The v12 patch uses that.

Sounds good.
        regards, tom lane



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

Предыдущее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [HACKERS] [PATCH] Improve geometric types
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Coverage improvements of src/bin/pg_basebackup andpg_receivewal --endpos