pgsql: Fix some failures with connection tests on Windows hosts

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix some failures with connection tests on Windows hosts
Date: 2021-04-07 22:07:56
Message-ID: E1lUGL6-0002ti-MM@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix some failures with connection tests on Windows hosts

The truncation of the log file, that this set of tests relies on to make
sure that a connection attempt matches with its expected backend log
pattern, fails, as reported by buildfarm member fairywren. Instead of a
truncation, do a rotation of the log file and restart the node. This
will ensure that the connection attempt data is unique for each test.

Discussion: https://postgr.es/m/YG05nCI8x8B+Ad3G@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c7578fa64019f27edc31261ea49066a4b2569a6c

Modified Files
--------------
src/test/perl/PostgresNode.pm | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2021-04-07 22:14:48 pgsql: Fix regression test failure caused by commit 4f0b0966c8
Previous Message Peter Eisentraut 2021-04-07 19:53:35 pgsql: SQL-standard function body