diff options
Diffstat (limited to 't/run/switchI.t')
-rw-r--r-- | t/run/switchI.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/run/switchI.t b/t/run/switchI.t new file mode 100644 index 0000000000..fa74b9435e --- /dev/null +++ b/t/run/switchI.t @@ -0,0 +1,19 @@ +#!./perl -IFoo::Bar -IBla + +BEGIN { + chdir 't' if -d 't'; + unshift @INC, '../lib'; + require './test.pl'; # for which_perl() etc +} + +BEGIN { + plan(4); +} + +ok(grep { $_ eq 'Bla' } @INC); +ok(grep { $_ eq 'Foo::Bar' } @INC); + +fresh_perl_is('print grep { $_ eq "Bla2" } @INC', 'Bla2', + { switches => ['-IBla2'] }, '-I'); +fresh_perl_is('print grep { $_ eq "Foo::Bar2" } @INC', 'Foo::Bar2', + { switches => ['-IFoo::Bar2'] }, '-I with colons'); |