366f89bdf84eef81d1b47d99fa03eca1919a1c6d
[perl-fuse.git] / test / chmod.t
1 #!/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");