develooper Front page | perl.perl5.changes | Postings from June 2020

[Perl/perl5] 8f555f: t/io/pipe.t: Suppress "Can't exec ..." warning

From:
James E Keenan
Date:
June 30, 2020 23:07
Subject:
[Perl/perl5] 8f555f: t/io/pipe.t: Suppress "Can't exec ..." warning
Message ID:
Perl/perl5/push/refs/heads/io-core-p7-20200630/0828fc-07fc80@github.com
  Branch: refs/heads/io-core-p7-20200630
  Home:   https://github.com/Perl/perl5
  Commit: 8f555fcf1bae1407ccb110654435053a5a9604c7
      https://github.com/Perl/perl5/commit/8f555fcf1bae1407ccb110654435053a5a9604c7
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/pipe.t

  Log Message:
  -----------
  t/io/pipe.t:  Suppress "Can't exec ..." warning

File did not previously run with warnings.  Once they're default, this
became apparent and unavoidable.


  Commit: 0a4e081322708cee8f60c746c878c8af4353cf31
      https://github.com/Perl/perl5/commit/0a4e081322708cee8f60c746c878c8af4353cf31
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/print.t

  Log Message:
  -----------
  Suppress 3 warnings

File did not previously run with warnings.  Adapt.


  Commit: a154e2787f1f2b49229d3600b6b9b6be736d02c7
      https://github.com/Perl/perl5/commit/a154e2787f1f2b49229d3600b6b9b6be736d02c7
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/read.t

  Log Message:
  -----------
  Suppress one 'used only once' warning


  Commit: 1715d3022dcbe8e90b0e2c1c6e8eda3ecd7e8cc7
      https://github.com/Perl/perl5/commit/1715d3022dcbe8e90b0e2c1c6e8eda3ecd7e8cc7
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/read.t

  Log Message:
  -----------
  t/io/read.t:  Add descriptions and test for return values


  Commit: 83918b5008679baf74faa0a40ee649233d4c18c0
      https://github.com/Perl/perl5/commit/83918b5008679baf74faa0a40ee649233d4c18c0
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/say.t

  Log Message:
  -----------
  t/io/say.t: Suppress one "used only once" warning

Now that strict and warnings are on by default, use "no strict 'refs'"
only where it's absolutely needed for compilation.


  Commit: 0ab2b174c5e8dadf34a60d8811f4e1b534f1a82b
      https://github.com/Perl/perl5/commit/0ab2b174c5e8dadf34a60d8811f4e1b534f1a82b
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/tell.t

  Log Message:
  -----------
  t/io/tell.t:  Suppress warnings

Use "no strict 'refs'" only where it's absolutely needed for
compilation.


  Commit: 07fc808dec36674e54b0a752a91919f9ccc51d97
      https://github.com/Perl/perl5/commit/07fc808dec36674e54b0a752a91919f9ccc51d97
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/io/utf8.t

  Log Message:
  -----------
  t/io/utf8.t:  Suppress or capture warnings

Also, use "no strict" only where absolutely necessary.

Some blocks containing loops of tests had to be disaggregated to get a
clear focus on what was throwing warnings and what was not.


Compare: https://github.com/Perl/perl5/compare/0828fc7beaf2...07fc808dec36



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About