Subject: | t/03_env.t fails if env vars start with a dot |
See subject. This can easily be reproduced like this:
...
env .TEST.SOMETHING=foobar /opt/perl-5.28.1/bin/prove -b t/03_env.t
t/03_env.t .. 1/86
# Failed test at t/03_env.t line 38.
# got: ''
# expected: 'foobar'
# The environment variable i was testing was .TEST.SOMETHING
# Looks like you failed 1 test of 86.
t/03_env.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/86 subtests
Test Summary Report
-------------------
t/03_env.t (Wstat: 256 Tests: 86 Failed: 1)
Failed test: 64
Non-zero exit status: 1
Files=1, Tests=86, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.07 cusr 0.02 csys = 0.11 CPU)
Result: FAIL
...
A similar fail report on CPAN Testers: http://www.cpantesters.org/cpan/report/ec9b6696-ec3f-11e8-9614-8fe41b4594fe
Note that the standard FreeBSD make define a number of environment variables starting with a dot, e.g. .MAKE.LEVEL