diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-25 06:13:14 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-01-25 06:13:14 +0000 |
commit | cbc136411c12f6ec4b242bce922c7013acd6aa1d (patch) | |
tree | 1d2f5cc684d162d2ba434e5b6e26be6242d7490d /t | |
parent | 1ac4a978d1dfb6f1f4abe73e0845e644769e4a6e (diff) | |
parent | 82867ecff54600b40335bf899f794c873ac8a5c9 (diff) | |
download | perl-cbc136411c12f6ec4b242bce922c7013acd6aa1d.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4887
Diffstat (limited to 't')
-rwxr-xr-x | t/io/fs.t | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -16,7 +16,7 @@ if (defined &Win32::IsWinNT && Win32::IsWinNT()) { $Is_Dosish = '' if Win32::FsType() eq 'NTFS'; } -print "1..28\n"; +print "1..29\n"; $wd = (($^O eq 'MSWin32') ? `cd` : `pwd`); chop($wd); @@ -177,10 +177,20 @@ else { close FH; } +# check if rename() can be used to just change case of filename +chdir './tmp'; +open(fh,'>x') || die "Can't create x"; +close(fh); +rename('x', 'X'); +print 'not ' unless -e 'X'; +print "ok 27\n"; +unlink 'X'; +chdir $wd || die "Can't cd back to $wd"; + # check if rename() works on directories rename 'tmp', 'tmp1' or print "not "; -print "ok 27\n"; --d 'tmp1' or print "not "; print "ok 28\n"; +-d 'tmp1' or print "not "; +print "ok 29\n"; END { rmdir 'tmp1'; unlink "Iofs.tmp"; } |