Simplify version check for SKIP clause

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 6ff2e8cdd410f70057cfa6259ad395c1119aeb32
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2023-04-08T21:32:11Z
Releases: 16.0
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@dunslane.net>
Discussion: https://postgr.es/m/6d880ea2-f8ca-f458-4dcd-a7a3e6d6cd7c@dunslane.net

Files

PathChange+/−
src/test/authentication/t/001_password.pl modified +1 −1

Discussion

Cited messages not in the archive: 6d880ea2-f8ca-f458-4dcd-a7a3e6d6cd7c@dunslane.net