/[fuse.before_github]/perl-llin/test/rename.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-llin/test/rename.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Thu Nov 11 14:44:15 2004 UTC (18 years, 2 months ago) by mszeredi
Original Path: perl/trunk/test/rename.t
File MIME type: application/x-troff
File size: 329 byte(s)
Initial revision

1 mszeredi 4 #!/usr/bin/perl
2     use test::helper qw($_real $_point);
3     use Test::More;
4     plan tests => 5;
5     chdir($_point);
6     system("echo hippity >frog");
7     ok(-f "frog","exists");
8     ok(!-f "toad","target file doesn't exist");
9     ok(rename("frog","toad"),"rename");
10     ok(!-f "frog","old file doesn't exist");
11     ok(-f "toad","target file exists");
12     unlink("toad");

  ViewVC Help
Powered by ViewVC 1.1.26