Subject: | t/basic.t fails if test.pl is installed |
If a test.pl can be found in perl's normal @INC (which probably should not happen, but it happens, see https://rt.cpan.org/Ticket/Display.html?id=117497 ) then t/basic.t fails:
$ perl5.24.1-RC3 -Mblib t/basic.t
# Subtest: none_matched
ok 1 - sanity check: lib not in @INC
____ _____ _____ _ ____ _____ ____
| _ \| _ \| ___| _ _ / \ | _ \|__ __| |___ \
| |_) | | \ | |_ (_) (_) / _ \ | |_) | | | __) |
| __/| |_/ | _| _ _ / ___ \| __/ _|_|_ / __
|_| |_____/|_| (_) (_) /_/ \_\_| |_____| |_____|
_____ _____ _____ _____ ____ ____ _____ _____
/ ___|/ _ \| _ \| ___| |___ \ | _ \| _ \| ___|
| / | / \ | | \ | |__ __) | | |_) | | \ | |_
| \___| \ / | |_/ | |___ / __ | __/| |_/ | _|
\_____|\_____/|_____/|_____| |_____| |_| |_____/|_|
____
|___ \
__) |
/ __
|_____|
# Looks like you planned 0 tests but ran 1.
ok 1 - none_matched
test.pl did not return a true value at t/basic.t line 38.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 1.
Maybe it should be made sure that the test paths are unshifted, not pushed to @INC.