aboutsummaryrefslogtreecommitdiffstats
path: root/perl/test/unlink.t
blob: eef8c1a9263aed12c2995a7e33a3020204929b9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use test::helper qw($_real $_point);
use Test::More;
plan tests => 4;
chdir($_point);
system("touch file");
ok(-f "file","file exists");
chdir($_real);
ok(-f "file","file really exists");
chdir($_point);
unlink("file");
ok(! -f "file","file unlinked");
chdir($_real);
ok(! -f "file","file really unlinked");