Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

Preloader warns when blacklisting and reloading #226

Closed rabbiveesh closed 3 years ago

rabbiveesh commented 3 years ago

Test2::Harness::Runner::Preloader (line 248) warns sometimes. It seems like this happens when there are empty entries in %INC. From what I understand, that only would happen if the module in question failed to load, in which case we can obviously ignore it since we certainly can't reload it.

The fix would be to put some defined-ness check there, a la listgrep { $b } %INC, I just don't know what particular incantation would strike your fancy.