Parent Directory | Revision Log
subversion revision 71 commited to CVS
1 | #!/usr/bin/perl |
2 | use test::helper qw($_real $_point); |
3 | use Test::More; |
4 | use English; |
5 | plan tests => 4; |
6 | |
7 | my (@stat); |
8 | chdir($_point); |
9 | system("echo frog >file"); |
10 | |
11 | SKIP: { |
12 | skip('Need root to give away ownership', 4) unless ($UID == 0); |
13 | |
14 | ok(chown(0,0,"file"),"set 0,0"); |
15 | @stat = stat("file"); |
16 | ok($stat[4] == 0 && $stat[5] == 0,"0,0"); |
17 | ok(chown(1,1,"file"),"set 1,1"); |
18 | @stat = stat("file"); |
19 | ok($stat[4] == 1 && $stat[5] == 1,"1,1"); |
20 | } |
21 | |
22 | unlink("file"); |
ViewVC Help | |
Powered by ViewVC 1.1.26 |