summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-03-27 19:16:49 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-03-27 19:16:49 (GMT)
commit3cafedec0ff906762951dbf8c5065947771aeb7f (patch)
treeb7b5d48e93533f9fba48a87c0a42a2eb9be2e81d /tests
parentdce424fd503c29bd61d1ea07d2461b3cb43d58b8 (diff)
downloadtcl-3cafedec0ff906762951dbf8c5065947771aeb7f.zip
tcl-3cafedec0ff906762951dbf8c5065947771aeb7f.tar.gz
tcl-3cafedec0ff906762951dbf8c5065947771aeb7f.tar.bz2
* generic/tclPathObj.c (TclPathPart): TclPathPart() was computing
* tests/fileName.test: the wrong results for both [file dirname] and [file tail] on "path" arguments with the PATHFLAGS != 0 intrep and with an empty string for the "joined-on" part. [Bug 2710920]
Diffstat (limited to 'tests')
-rw-r--r--tests/fileName.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/fileName.test b/tests/fileName.test
index 2cd68c6..97bbc31 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.51.8.3 2009/02/20 18:19:32 dgp Exp $
+# RCS: @(#) $Id: fileName.test,v 1.51.8.4 2009/03/27 19:16:49 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1335,6 +1335,19 @@ test filename-14.25.1 {type specific globbing} {win} {
test filename-14.26 {type specific globbing} {
list [catch {glob -nocomplain -dir globTest -types {readonly} *} msg] $msg
} [list 0 {}]
+test filename-14.27 {Bug 2710920} {unixOrPc} {
+ file tail [lindex [lsort [glob globTest/*/]] 0]
+} a1
+test filename-14.28 {Bug 2710920} {unixOrPc} {
+ file dirname [lindex [lsort [glob globTest/*/]] 0]
+} globTest
+test filename-14.29 {Bug 2710920} {unixOrPc} {
+ file extension [lindex [lsort [glob globTest/*/]] 0]
+} {}
+test filename-14.30 {Bug 2710920} {unixOrPc} {
+ file rootname [lindex [lsort [glob globTest/*/]] 0]
+} globTest/a1/
+
unset globname