Fixing ioctl on 32bit arches.
[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 open($file, '>', 'file');
7 print $file "frog\n";
8 close($file);
9 ok(chmod(0644,"file"),"set unexecutable");
10 ok(!-x "file","unexecutable");
11 ok(chmod(0755,"file"),"set executable");
12 ok(-x "file","executable");
13 unlink("file");