t/sub1/sub2/sub3/sub4/sub5/sub6/no_findlib.t
raw| 1 | use strict; |
| 2 | use Test::More tests => 3; |
| 3 | |
| 4 | require Test::Lib; |
| 5 | |
| 6 | ok !eval { Test::Lib->import; 1 }, 'tlib import dies to find t/lib more than 5 levels up'; |
| 7 | like $@, qr{^unable to find t/lib directory in }, 'error message correct'; |
| 8 | ok !eval { require tlib_test; 1 }, 'nothing added to @INC'; |
| 9 | |
| 10 | |
| 11 | 1; |