From 549ec201d6132b7c7ee11ee90a4e02119259ba5b Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Fri, 11 Feb 2022 20:54:44 +0100 Subject: Replace Test::More plans with done_testing Rather than doing manual book keeping to plan the number of tests to run in each TAP suite, conclude each run with done_testing() summing up the the number of tests that ran. This removes the need for maintaning and updating the plan count at the expense of an accurate count of remaining during the test suite runtime. This patch has been discussed a number of times, often in the context of other patches which updates tests, so a larger number of discussions can be found in the archives. Reviewed-by: Julien Rouhaud Reviewed-by: Dagfinn Ilmari Mannsåker Reviewed-by: Tom Lane Reviewed-by: Michael Paquier Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/DD399313-3D56-4666-8079-88949DAC870F@yesql.se --- contrib/vacuumlo/t/001_basic.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'contrib/vacuumlo/t') diff --git a/contrib/vacuumlo/t/001_basic.pl b/contrib/vacuumlo/t/001_basic.pl index b7a84cf92ea..f4bfb2a1c3c 100644 --- a/contrib/vacuumlo/t/001_basic.pl +++ b/contrib/vacuumlo/t/001_basic.pl @@ -5,8 +5,10 @@ use strict; use warnings; use PostgreSQL::Test::Utils; -use Test::More tests => 8; +use Test::More; program_help_ok('vacuumlo'); program_version_ok('vacuumlo'); program_options_handling_ok('vacuumlo'); + +done_testing(); -- cgit v1.2.3