Avoid odd portability problem in TestLib.pm's slurp_file function.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Dec 2015 21:58:05 +0000 (16:58 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Dec 2015 21:58:05 +0000 (16:58 -0500)
commit938d797b84467ebbaed432da72d1d7f7bb266110
tree25f87ed115a4519bdc8e0dd3a226c0c4da191a3b
parentd5563d7df94488bf0ab52ac0678e8a07e5b8297e
Avoid odd portability problem in TestLib.pm's slurp_file function.

For unclear reasons, this function doesn't always read the expected data
in some old Perl versions.  Rewriting it to avoid use of ARGV seems to
dodge the problem, and this version is clearer anyway if you ask me.

In passing, also improve error message in adjacent append_to_file function.
src/test/perl/TestLib.pm