This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[FIX] Re: UTF-8 failures (surprise!)
[perl5.git] / lib / FindBin.t
CommitLineData
1a3850a5
GA
1#!./perl
2
3BEGIN {
88587957
NC
4 # Can't chdir in BEGIN before FindBin runs, as it then can't find us.
5 @INC = -d 't' ? 'lib' : '../lib';
1a3850a5
GA
6}
7
8print "1..1\n";
9
10use FindBin qw($Bin);
11
b695f709
JH
12print "# $Bin\n";
13
d5201bd2
JH
14if ($^O eq 'MacOS') {
15 print "not " unless $Bin =~ m,:lib:$,;
16} else {
17 print "not " unless $Bin =~ m,[/.]lib\]?$,;
18}
1a3850a5 19print "ok 1\n";