diff options
author | das <das> | 2004-11-11 01:14:29 (GMT) |
---|---|---|
committer | das <das> | 2004-11-11 01:14:29 (GMT) |
commit | 740b782d72d5891cc221997d329a66754ee437c5 (patch) | |
tree | f5116dc678789f43adcb22cf6e2e20330f894e22 /tests/fCmd.test | |
parent | 6f35cbe15db6feb1c5b107376f4ce7de23915f8b (diff) | |
download | tcl-740b782d72d5891cc221997d329a66754ee437c5.zip tcl-740b782d72d5891cc221997d329a66754ee437c5.tar.gz tcl-740b782d72d5891cc221997d329a66754ee437c5.tar.bz2 |
* tests/fCmd.test:
* unix/tclUnixFCmd.c (TraverseUnixTree): added option to rewind()
the readdir() loop whenever the source hierarchy has been modified
by traverseProc (e.g. by deleting files); this is required to ensure
complete traversal of the source hierarchy on certain filesystems
like HFS+. Added test for failing recursive delete on Mac OS X that
was due to this. [Bug 1034337]
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r-- | tests/fCmd.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test index 6ff3872..1c234b3 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: fCmd.test,v 1.43 2004/10/31 19:12:34 dkf Exp $ +# RCS: @(#) $Id: fCmd.test,v 1.44 2004/11/11 01:14:29 das Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -1762,6 +1762,16 @@ test fCmd-20.1 {TraverseUnixTree : failure opening a subdirectory directory } \ set result } {1} +test fCmd-20.2 {TraverseUnixTree : recursive delete of large directory: Bug 1034337} \ + {unix notRoot} { + catch {file delete -force -- tfa} + file mkdir tfa + for {set i 1} {$i <= 200} {incr i} {createfile tfa/testfile_$i} + set result [catch {file delete -force tfa} msg] + while {[catch {file delete -force tfa}]} {} + list $result $msg +} {0 {}} + # # Feature testing for TclCopyFilesCmd # |