From: Andrew Dunstan Date: Sat, 20 Nov 2021 22:54:43 +0000 (-0500) Subject: Require version 0.98 of Test::More for TAP tests X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=405f32fc49609eb94fa39e7b5e7c1fe2bb2b73aa;p=users%2Frhaas%2Fpostgres.git Require version 0.98 of Test::More for TAP tests This means that the subtest feature will be available for use. We expect that this change will make prairiedog go red until it is updated, but other buildfarm animals should be fine. Discussion: https://postgr.es/m/f5e1d308-4e33-37a7-bdf1-f6e0c75119de@dunslane.net --- diff --git a/configure b/configure index 682154959e..977b4d3df5 100755 --- a/configure +++ b/configure @@ -19472,7 +19472,7 @@ fi if test "x$PERL" != x; then ax_perl_modules_failed=0 - for ax_perl_module in 'IPC::Run 0.79' 'Test::More 0.87' 'Time::HiRes 1.52' ; do + for ax_perl_module in 'IPC::Run 0.79' 'Test::More 0.98' 'Time::HiRes 1.52' ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 $as_echo_n "checking for perl module $ax_perl_module... " >&6; } diff --git a/configure.ac b/configure.ac index 260bb842af..95e5169c4f 100644 --- a/configure.ac +++ b/configure.ac @@ -2386,7 +2386,7 @@ if test "$enable_tap_tests" = yes; then # but some distros omit them in a minimal installation. # The required minimum versions are all quite ancient now, but specify # them anyway for documentation's sake. - AX_PROG_PERL_MODULES([IPC::Run=0.79 Test::More=0.87 Time::HiRes=1.52], , + AX_PROG_PERL_MODULES([IPC::Run=0.79 Test::More=0.98 Time::HiRes=1.52], , [AC_MSG_ERROR([Additional Perl modules are required to run TAP tests])]) fi # Now make sure we know where prove is diff --git a/src/test/perl/PostgreSQL/Test/Utils.pm b/src/test/perl/PostgreSQL/Test/Utils.pm index f29d43f1f3..5a7f8bcb97 100644 --- a/src/test/perl/PostgreSQL/Test/Utils.pm +++ b/src/test/perl/PostgreSQL/Test/Utils.pm @@ -60,7 +60,7 @@ use PostgreSQL::Test::SimpleTee; # specify a recent enough version of Test::More to support the # done_testing() function -use Test::More 0.87; +use Test::More 0.98; our @EXPORT = qw( generate_ascii_string