Backport BackgroundPsql perl test module
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 16:00:59 +0000 (19:00 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 16:01:13 +0000 (19:01 +0300)
commitd5fd7865f068209162130a1a392367bf874b9e4d
treed43672a76b4ad97d38af4c707147eb533d3adf9e
parent76fda614027436ca030e1fac4fe33484e995970f
Backport BackgroundPsql perl test module

Backport the new BackgroundPsql modules and the constructor functions,
background_psql() and interactive_psql, to all supported
branches. That makes it easier to backpatch tests that use it.

BackgroundPsql was introduced in version 16. On version 16, this
commit backports just the new timeout argument from master (commit
334f512f45). On older branches, the whole facility. This includes the
change to `use warnings FATAL => 'all'`, which we haven't otherwise
backported, but it seems good to keep the file identical across
branches.

Discussion: https://www.postgresql.org/message-id/b7c64f20-ea01-4f15-9088-0cd6832af149@iki.fi
contrib/amcheck/t/003_cic_2pc.pl
src/bin/psql/t/010_tab_completion.pl
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm [new file with mode: 0644]
src/test/perl/PostgreSQL/Test/Cluster.pm
src/test/recovery/t/010_logical_decoding_timelines.pl
src/test/recovery/t/031_recovery_conflict.pl
src/test/recovery/t/037_invalid_database.pl
src/test/subscription/t/015_stream.pl