diff options
author | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-05-16 10:09:28 +0000 |
commit | f56e05005c751822074f0a22aa9a98d2eb189924 (patch) | |
tree | e28fc632241c9d248069d45dd9ab2a41fa64868f /contrib/perl5/t/op/glob.t | |
parent | 344ddc14973a1519f100f54051dcb068069fe43c (diff) | |
download | FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.zip FreeBSD-src-f56e05005c751822074f0a22aa9a98d2eb189924.tar.gz |
Perl is no longer in base. Long live the port!
Diffstat (limited to 'contrib/perl5/t/op/glob.t')
-rwxr-xr-x | contrib/perl5/t/op/glob.t | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/contrib/perl5/t/op/glob.t b/contrib/perl5/t/op/glob.t deleted file mode 100755 index fc0ba77..0000000 --- a/contrib/perl5/t/op/glob.t +++ /dev/null @@ -1,40 +0,0 @@ -#!./perl - -BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; -} - -print "1..6\n"; - -@oops = @ops = <op/*>; - -if ($^O eq 'MSWin32') { - map { $files{lc($_)}++ } <op/*>; - map { delete $files{"op/$_"} } split /[\s\n]/, `cmd /c "dir /b /l op & dir /b /l /ah op 2>nul"`, -} -else { - map { $files{$_}++ } <op/*>; - map { delete $files{$_} } split /[\s\n]/, `echo op/*`; -} -if (keys %files) { - print "not ok 1\t(",join(' ', sort keys %files),"\n"; -} else { print "ok 1\n"; } - -print $/ eq "\n" ? "ok 2\n" : "not ok 2\n"; - -while (<jskdfjskdfj* op/* jskdjfjkosvk*>) { - $not = "not " unless $_ eq shift @ops; - $not = "not at all " if $/ eq "\0"; -} -print "${not}ok 3\n"; - -print $/ eq "\n" ? "ok 4\n" : "not ok 4\n"; - -# test the "glob" operator -$_ = "op/*"; -@glops = glob $_; -print "@glops" eq "@oops" ? "ok 5\n" : "not ok 5\n"; - -@glops = glob; -print "@glops" eq "@oops" ? "ok 6\n" : "not ok 6\n"; |