projects
/
perl-fuse.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
diag output
[perl-fuse.git]
/
test
/
truncate.t
1
#!/usr/bin/perl
2
use test::helper qw($_real $_point);
3
use Test::More;
4
plan tests => 5;
5
chdir($_point);
6
system("echo hippity >womble");
7
ok(-f "womble","exists");
8
is(-s "womble",8,"right size");
9
ok(truncate("womble",4),"truncate");
10
ok(-f "womble","file exists");
11
is(-s "womble",4,"right size");
12
unlink("womble");