File: no_findlib.t

package info (click to toggle)
libtest-lib-perl 0.003-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, trixie
  • size: 132 kB
  • sloc: perl: 32; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
use strict;
use Test::More tests => 3;

require Test::Lib;

ok !eval { Test::Lib->import; 1 }, 'tlib import dies to find t/lib more than 5 levels up';
like $@, qr{^unable to find t/lib directory in }, 'error message correct';
ok !eval { require tlib_test; 1 }, 'nothing added to @INC';


1;