File: 03-pwd-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 (17 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use Test::More;

BEGIN {
    if ($^O eq 'MSWin32' or $^O eq 'os2') {
        plan skip_all => "irrelevant on dosish OS";
    }
    $ENV{PWD} = '/tmp'; chdir '/tmp';
};
plan tests => 1;

use Find::Lib;

eval {
    Find::Lib->import('../mylib', 'MyLib', a => 1, b => 42);
};
ok $@, "we die because chdir and PWD are changed";