Parent Directory | Revision Log
Initial revision
1 | #!/usr/bin/perl |
2 | use test::helper qw($_real $_point); |
3 | use Test::More; |
4 | plan tests => 4; |
5 | my (@stat); |
6 | chdir($_point); |
7 | system("echo frog >file"); |
8 | ok(chown(0,0,"file"),"set 0,0"); |
9 | @stat = stat("file"); |
10 | ok($stat[4] == 0 && $stat[5] == 0,"0,0"); |
11 | ok(chown(1,1,"file"),"set 1,1"); |
12 | @stat = stat("file"); |
13 | ok($stat[4] == 1 && $stat[5] == 1,"1,1"); |
14 | unlink("file"); |
ViewVC Help | |
Powered by ViewVC 1.1.26 |