]> granicus.if.org Git - postgresql/commit
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)
commit59f10ffa5bc1f39a5ce00806b394feb8f207bb33
treeb1ff6ee9756271e1caf21095a4421b8c2a1272d3
parent325b357bc255149c5ace7d77f5c15c941bafef0a
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