File: 03-chdir-begin.t

package info (click to toggle)
libfind-lib-perl 1.04-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: perl: 124; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use Test::More tests => 2;

use Find::Lib;

BEGIN { chdir '/tmp' };

eval { 
    Find::Lib->import('../mylib');
    eval "use MyLib a => 1, b => 42;"; die $@ if $@;
};
ok ! $@, "we didn't die, because initial Find::Lib compilation saved cwd";