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)
commit56a79a5ae9fe1426b07f8ad986777829f19b4437
tree39f975aaf1b4dda31a6e3768eb6b79e946944031
parent0901d68babc324cc09077131fa966f15225e1fab
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