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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Thu Nov 11 14:44:15 2004 UTC (18 years, 3 months ago) by mszeredi
File MIME type: application/x-troff
File size: 277 byte(s)
Initial revision

1 mszeredi 4 #!/usr/bin/perl
2     use test::helper qw($_real $_point);
3     use Test::More;
4     plan tests => 3;
5     my (@stat);
6     chdir($_real);
7     system("echo frog >file");
8     chdir($_point);
9     ok(utime(1,2,"file"),"set utime");
10     @stat = stat("file");
11     is($stat[8],1,"atime");
12     is($stat[9],2,"mtime");
13     unlink("file");

  ViewVC Help
Powered by ViewVC 1.1.26