summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-01-25 06:13:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-01-25 06:13:14 +0000
commitcbc136411c12f6ec4b242bce922c7013acd6aa1d (patch)
tree1d2f5cc684d162d2ba434e5b6e26be6242d7490d /t
parent1ac4a978d1dfb6f1f4abe73e0845e644769e4a6e (diff)
parent82867ecff54600b40335bf899f794c873ac8a5c9 (diff)
downloadperl-cbc136411c12f6ec4b242bce922c7013acd6aa1d.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4887
Diffstat (limited to 't')
-rwxr-xr-xt/io/fs.t16
1 files changed, 13 insertions, 3 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index 0bcf579162..cd7e7cfb04 100755
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -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"; }