summaryrefslogtreecommitdiffstats
path: root/tests/fileName.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2010-01-05 18:58:36 (GMT)
committerdgp <dgp@users.sourceforge.net>2010-01-05 18:58:36 (GMT)
commit0e23807506cde25fbd9689f83c09a35db89fa79f (patch)
tree0e5236fc16ed5cb30ddc15cf053d21bcf49dcf89 /tests/fileName.test
parent5e5cf63c514ffd9ca54093a7dd98c00443e7d67c (diff)
downloadtcl-0e23807506cde25fbd9689f83c09a35db89fa79f.zip
tcl-0e23807506cde25fbd9689f83c09a35db89fa79f.tar.gz
tcl-0e23807506cde25fbd9689f83c09a35db89fa79f.tar.bz2
* generic/tclPathObj.c (TclPathPart): Correct inconsistency between
* tests/fileName.test (filename-14.31): the string rep and the intrep of a path value created by [file rootname]. Thanks to Vitaly Magerya for reporting. [Bug 2918610]
Diffstat (limited to 'tests/fileName.test')
-rw-r--r--tests/fileName.test17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index c02cea3..d46391a 100644
--- a/tests/fileName.test
+++ b/tests/fileName.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: fileName.test,v 1.65 2009/10/28 16:46:33 kennykb Exp $
+# RCS: @(#) $Id: fileName.test,v 1.66 2010/01/05 18:58:36 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1290,6 +1290,21 @@ test filename-14.30 {Bug 2710920} {unixOrPc} {
file rootname [lindex [lsort [glob globTest/*/]] 0]
} globTest/a1/
+test filename-14.31 {Bug 2918610} -setup {
+ set d [makeDirectory foo]
+ makeFile {} bar.soom $d
+} -body {
+ foreach fn [glob $d/bar.soom] {
+ set root [file rootname $fn]
+ close [open $root {WRONLY CREAT}]
+ }
+ llength [glob -directory $d *]
+} -cleanup {
+ file delete -force $d/bar
+ removeFile bar.soom $d
+ removeDirectory foo
+} -result 2
+
unset globname
# The following tests are only valid for Unix systems. On some systems, like