From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Simplify version check for SKIP clause |
Date: | 2023-04-08 21:38:48 |
Message-ID: | E1plGGl-0026oj-NL@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Simplify version check for SKIP clause
Checking for the required versions of IO::Pty as well as IPC::Run
can be achieved with a single eval call, and by using the VERSION
function the comparison is guaranteed to follow the same rules as
calling 'use' on the module with a version.
Reported-by: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://postgr.es/m/6d880ea2-f8ca-f458-4dcd-a7a3e6d6cd7c@dunslane.net
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6ff2e8cdd410f70057cfa6259ad395c1119aeb32
Modified Files
--------------
src/test/authentication/t/001_password.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Aleksander Alekseev | 2023-04-10 12:48:57 | Re: pgsql: psql: add an optional execution-count limit to \watch. |
Previous Message | Daniel Gustafsson | 2023-04-08 20:46:08 | Re: pgsql: Skip \password TAP test on old IPC::Run versions |