diff options
author | Daniel Gustafsson | 2022-02-11 19:54:44 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2022-02-11 19:54:44 +0000 |
commit | 549ec201d6132b7c7ee11ee90a4e02119259ba5b (patch) | |
tree | 44c1669ef24c66233c16b2fa77aff148596f67a7 /src/bin/pg_config | |
parent | 751b8d23b788580bbff7463e3959f9a92a95b28a (diff) |
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 <[email protected]>
Reviewed-by: Dagfinn Ilmari Mannsåker <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Kyotaro Horiguchi <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/pg_config')
-rw-r--r-- | src/bin/pg_config/t/001_pg_config.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/pg_config/t/001_pg_config.pl b/src/bin/pg_config/t/001_pg_config.pl index cff4d6ebc90..9a891090688 100644 --- a/src/bin/pg_config/t/001_pg_config.pl +++ b/src/bin/pg_config/t/001_pg_config.pl @@ -4,7 +4,7 @@ use strict; use warnings; use PostgreSQL::Test::Utils; -use Test::More tests => 20; +use Test::More; program_help_ok('pg_config'); program_version_ok('pg_config'); @@ -17,3 +17,5 @@ command_like([ 'pg_config', '--libdir', '--bindir' ], qr/lib.*\n.*bin/, 'pg_config two options different order'); command_like(['pg_config'], qr/.*\n.*\n.*/, 'pg_config without options prints many lines'); + +done_testing(); |