/[fuse.before_github]/perl/trunk/test/chmod.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

Annotation of /perl/trunk/test/chmod.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Thu Nov 11 14:44:15 2004 UTC (19 years, 4 months ago) by mszeredi
File MIME type: application/x-troff
File size: 288 byte(s)
Initial revision

1 mszeredi 4 #!/usr/bin/perl
2     use test::helper qw($_real $_point);
3     use Test::More;
4     plan tests => 4;
5     chdir($_point);
6     system("echo frog >file");
7     ok(chmod(0644,"file"),"set unexecutable");
8     ok(!-x "file","unexecutable");
9     ok(chmod(0755,"file"),"set executable");
10     ok(-x "file","executable");
11     unlink("file");

  ViewVC Help
Powered by ViewVC 1.1.26