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

[Perl/perl5] b0441c: t/loc_tools.pl: Consider thread 0 alwayslocale-safe

From:
Karl Williamson via perl5-changes
Date:
October 23, 2020 13:07
Subject:
[Perl/perl5] b0441c: t/loc_tools.pl: Consider thread 0 alwayslocale-safe
Message ID:
Perl/perl5/push/refs/heads/blead/65ff25-b0441c@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: b0441c5bc62aa2ba1980c5ae151db48af58bcfcf
      https://github.com/Perl/perl5/commit/b0441c5bc62aa2ba1980c5ae151db48af58bcfcf
  Author: Karl Williamson <khw@cpan.org>
  Date:   2020-10-23 (Fri, 23 Oct 2020)

  Changed paths:
    M t/loc_tools.pl

  Log Message:
  -----------
  t/loc_tools.pl: Consider thread 0 always locale-safe

Test files call this code to see if locales are enabled.  Prior to this
commit, it returned that they were disabled on builds where there are
possible races between threads.  This was to silence some rarely
occurring smoke failures.  But that had the result that such builds
didn't get locales tested at all, even if there was just a single thread
operating.  This commit changes it so that when called from other than
the main thread on such a system, it returns disabled, but enabled for
the main thread.



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