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

[Perl/perl5] 1f5f2e: Avoid uninitialized value warning

From:
James E Keenan
Date:
June 30, 2020 14:45
Subject:
[Perl/perl5] 1f5f2e: Avoid uninitialized value warning
Message ID:
Perl/perl5/push/refs/heads/core-p7/3aaae3-a2dc8d@github.com
  Branch: refs/heads/core-p7
  Home:   https://github.com/Perl/perl5
  Commit: 1f5f2e80f0cae089e8dfd4a6f8ebb0b96f404060
      https://github.com/Perl/perl5/commit/1f5f2e80f0cae089e8dfd4a6f8ebb0b96f404060
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/opbasic/concat.t

  Log Message:
  -----------
  Avoid uninitialized value warning

Is this custom is() function, a string comparison between $got and
$expected assumes both are defined.  Make it so.


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

  Changed paths:
    M t/opbasic/qq.t

  Log Message:
  -----------
  Mark tests that warn

Ideally, rather than saying "no warnings 'digit'", we should capture the
warning and then test its content with a like() function.  But I haven't
yet figured out how to get $SIG{__WARN__} to work here.


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

  Changed paths:
    M t/opbasic/qq.t

  Log Message:
  -----------
  Provide descriptions when tests pass

This is good mainly so that we can easily locate individual tests within
the file during debugging.


Compare: https://github.com/Perl/perl5/compare/3aaae3e55bdb...a2dc8dd7347b



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