pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio
3+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio
@ 2015-12-08 21:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2015-12-08 21:58 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/938d797b84467ebbaed432da72d1d7f7bb266110

Modified Files
--------------
src/test/perl/TestLib.pm |   11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio
@ 2015-12-08 21:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2015-12-08 21:58 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/59f10ffa5bc1f39a5ce00806b394feb8f207bb33

Modified Files
--------------
src/test/perl/TestLib.pm |    7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio
@ 2015-12-08 21:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2015-12-08 21:58 UTC (permalink / raw)
  To: pgsql-committers

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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/56a79a5ae9fe1426b07f8ad986777829f19b4437

Modified Files
--------------
src/test/perl/TestLib.pm |    7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2015-12-08 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 21:58 pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio Tom Lane <tgl@sss.pgh.pa.us>
2015-12-08 21:58 pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio Tom Lane <tgl@sss.pgh.pa.us>
2015-12-08 21:58 pgsql: Avoid odd portability problem in TestLib.pm's slurp_file functio Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox