diff options
Diffstat (limited to 'regress/base')
| -rw-r--r-- | regress/base/copy.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/regress/base/copy.pl b/regress/base/copy.pl new file mode 100644 index 00000000..049ff5ba --- /dev/null +++ b/regress/base/copy.pl @@ -0,0 +1,20 @@ +#!/usr/local/bin/perl +#-*- perl -*- +# +# Copyright (C) 2001 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $Id$ +# $FML$ +# + +use IO::File::Atomic; + +($src, $dst) = @ARGV; +print "IO::File::Atomic->copy($src, $dst);\n"; +print "sleep 3;\n"; +sleep 3; +my $status = IO::File::Atomic->copy($src, $dst) || die("fail to copy"); + +exit 0; |
