Move pump_until to TestLib.pm.
authorAmit Kapila <[email protected]>
Thu, 28 Nov 2019 02:58:17 +0000 (08:28 +0530)
committerAmit Kapila <[email protected]>
Thu, 28 Nov 2019 02:58:17 +0000 (08:28 +0530)
commit290acac92b1d7bebb4ec68fe8b7a5cb442333eda
treecff15d2b4668349291e8ed8dd370c0080736683b
parent60b35b7f1ea1d5cd17805e30299fd21616855b7d
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  for dropdb utility.

Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAP_rwwmLJJbn70vLOZFpxGw3XD7nLB_7+NKz46H5EOO2k5H7OQ@mail.gmail.com
src/test/perl/TestLib.pm
src/test/recovery/t/013_crash_restart.pl