From 7c990e6c9a8147fc8a2f658142d9179893a5f0c9 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 27 Mar 2009 19:14:36 +0000 Subject: * tests/fileName.test: Tests for [Bug 2710920] to guard against its appearance. --- ChangeLog | 5 +++++ tests/fileName.test | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 91f30ec..57a09a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-27 Don Porter + + * tests/fileName.test: Tests for [Bug 2710920] to guard against + its appearance. + 2009-03-20 Don Porter * generic/tclStringObj.c: Test stringObj-6.9 checks that diff --git a/tests/fileName.test b/tests/fileName.test index 6e9eb79..b197d2d 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.30.2.10 2009/02/20 18:24:28 dgp Exp $ +# RCS: @(#) $Id: fileName.test,v 1.30.2.11 2009/03/27 19:14:36 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -1860,6 +1860,18 @@ test filename-14.25.1 {type specific globbing} {pcOnly macOnly} { 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 -- cgit v0.12