/[fuse.before_github]/perl/trunk/test/chown.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /perl/trunk/test/chown.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Thu Nov 11 14:44:15 2004 UTC (19 years, 4 months ago) by mszeredi
File MIME type: application/x-troff
File size: 351 byte(s)
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