projects
/
p5sagit/p5-mst-13.2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
82dee7de92a0bd35 failed to add ext/lib/Makefile.PL. Oops.
[p5sagit/p5-mst-13.2.git]
/
ext
/
Fcntl
/
t
/
mode.t
1
#!./perl -w
2
3
BEGIN {
4
require 'test.pl';
5
}
6
7
plan tests => 2;
8
9
use File::Temp;
10
use Fcntl qw(:mode);
11
12
my $tmpfile = File::Temp->new;
13
my $mode = (stat "$tmpfile")[2];
14
ok( S_ISREG($mode), " S_ISREG tmpfile");
15
ok(!S_ISDIR($mode), "!S_ISDIR tmpfile");