pgsql: Move pump_until to TestLib.pm. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Move pump_until to TestLib.pm.
Date
Msg-id E1iaA3c-00044A-Gh@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Move pump_until to TestLib.pm.

The subroutine pump_until provides the functionality to poll until the
given string is matched, or a timeout occurs.  This can be used from other
places as well, so moving it to TestLib.pm.  The immediate need is for an
upcoming regression test patch for dropdb utility.

Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAP_rwwmLJJbn70vLOZFpxGw3XD7nLB_7+NKz46H5EOO2k5H7OQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/290acac92b1d7bebb4ec68fe8b7a5cb442333eda

Modified Files
--------------
src/test/perl/TestLib.pm                 | 37 +++++++++++++++++++
src/test/recovery/t/013_crash_restart.pl | 63 ++++++++++++--------------------
2 files changed, 60 insertions(+), 40 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: adjust error paragraph width to be consistent
Next
From: Amit Kapila
Date:
Subject: pgsql: Add tests for '-f' option in dropdb utility.