Subject: | 'overload.pm is not loaded by default' may fail |
On some of my smokers I see the following test failure:
...
# Failed test 'overload.pm is not loaded by default'
# at t/loader.t line 12.
# Looks like you failed 1 test of 6.
t/loader.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/6 subtests
...
Unfortunately statistical analysis does not provide any information about the reasons. My guess is that some of the toolchain modules (Test::More) has some optional prereqs, which, if available, would also load overload.pm.
To save this test, one can do the following:
- load Test::More as early as possible
- check (in a BEGIN block) if overload.pm was already loaded
- if it is loaded early, then skip the overload test case