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