Re: pgsql: Skip \password TAP test on old IPC::Run versions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Skip \password TAP test on old IPC::Run versions
Дата
Msg-id 3588535.1680971029@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Skip \password TAP test on old IPC::Run versions  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pgsql: Skip \password TAP test on old IPC::Run versions  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-committers
Andrew Dunstan <andrew@dunslane.net> writes:
> Stylistic nitpick: It's not necessary to have 2 evals here:

> +   skip "IO::Pty and IPC::Run >= 0.98 required", 1 unless
> +       (eval { require IO::Pty; } && eval { $IPC::Run::VERSION >= 
> '0.98' });

> just say "eval { require IO::Pty; return $IPC::Run::VERSION >= '0.98'; }"

What I was wondering about was if it's safe to depend on the VERSION
being fully numeric.  Can't we write "use IPC::Run 0.98;" and let
some other code manage the version comparison?

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve indentation of multiline initialization expressions.
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: pgsql: Try to unbreak MSVC builds for pg_waldump