ext/POSIX/t/posix.t: Fix undefined C behavior in test
Behavior marked as undefined by the C standard should be avoided. Its
a simple matter to fix this .t to not have such behavior.
In general, the programmer may not have control over the input string
being parsed to convert to a number, and so it could be too large or
tiny for the available precision and hence result in undefined behavior.
That is something that is unavoidable.

Typemap.xs: avoid leak
The code was doing Safefree(in[i++]) in a loop,
but Safefree() is a macro which may evaluate its arg multiple times,
causing to i to get multipally incremented and thus skipping over some
items that need freeing.
This module is only used for build and test and isn't isn't installed,
so this fix is for the benefit of smokers rather than end users.

ext/File-Glob/t/rt131211.t: simplify timing
This test file expects a glob which matches to be fast,
and a glob which doesn't match also to be fast, but which used to be
exponentially slow.
Previous commits of mine have tried to avoid false positives for the
failtime > 10 * passtime test when both pass and fail times are so small
that the calculation is just comparing noise.
This new change simplifies the logic to: fail if both
fail time > 1 sec (slow)
fail time > 10 * pass time (so pass was relatively fast)

ext/POSIX/t/mb.t: Skip a test on early HP-UX2019-04-19T21:33:10ZKarl Williamsonkhw@cpan.orgKarl Williamsonkhw@cpan.org2019-04-19T21:33:10Zhttps://perl5.git.perl.org/perl.git/commitdiff/b9893ba58d9656b9b5f2a5a6998b77dc16542ef7

ext/POSIX/t/mb.t: Skip a test on early HP-UX
This was fixed by the time of 11.31

ext/POSIX/t/posix.t: Clarify tests
These tests, added in 693d95f399039f4aa96bb6737166aeeb546e5350, may be
confusing, due to truncation due to precision in any failing output.
This changes the test name to include a caveat.

Check that perl and POSIX::strtod assign same value2019-04-16T12:09:20Zsisyphussisyphus@cpan.orgKarl Williamsonkhw@cpan.org2019-04-16T12:09:20Zhttps://perl5.git.perl.org/perl.git/commitdiff/693d95f399039f4aa96bb6737166aeeb546e5350

ext/File-Glob/t/rt131211.t: fix timing issues #2
Commit v5.27.8-405-gf548aeca98 from a year ago tweaked this
timing-sensitive test script to reduce false positives.
However, we're still seeing the occasional failure of test 2 in smokes,
so twaks the timing a little further.

ext/POSIX/t/mb.t: Fix osvers= syntax checking
Commit 918fbd43ad287e3a4b8f309a55f91e409747c895 added a test skip to
this .t for early HP-UX platforms. Unfortunately, due to a machine
crash, I don't have access to such a platform to test it on, and I got
the syntax wrong. In consulation with Merijn Brand, I believe this
commit gets it right.

POSIX/t/mb.t: Skip test on early HP-UX
There is a bug in this OS, fixed as of 11.31, in which mblen() doesn't
return the proper result in the UTF-8 locale C.utf8. Any other UTF-8
locales on this platform are broken for another reason, being that a
bunch of what Perl expects to be punctuation characters aren't.

Reinstate and fix failing POSIX mb.t test
Somehow I had pushed to blead a draft version of the test, rather than
the final one that actually should work. The draft is what got reverted
by 8cc54175018f1cabb5c0354371c9e2ee24f8ee5a. Reinstate the test,
corrected.