This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move a test from t/lib/warnings/sv to .../9uninit
[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
f5094128 8print "1..2\n";
1a3850a5
GA
9
10use FindBin qw($Bin);
11
b695f709 12print "# $Bin\n";
7b903762 13print "not " unless $Bin =~ m,[/.]lib\]?$,;
1a3850a5 14print "ok 1\n";
f5094128
SR
15
16$0 = "-";
17FindBin::again();
18
19print "not " if $FindBin::Script ne "-";
20print "ok 2\n";