summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-05-19 16:56:35 (GMT)
committervincentdarley <vincentdarley>2004-05-19 16:56:35 (GMT)
commite8f6e134d9fe78331b2ee9696941ad0d20683403 (patch)
tree94dde45090003bf42f08259bde76226467fb2e62 /tests/cmdAH.test
parent645435663a5c2ba8dcdc3be20f50410cae48a629 (diff)
downloadtcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.zip
tcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.tar.gz
tcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.tar.bz2
fix to 'file dirname' and to fs refCount documentation
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index c66fc82..41fef8d 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.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: cmdAH.test,v 1.40 2004/05/17 10:38:22 vincentdarley Exp $
+# RCS: @(#) $Id: cmdAH.test,v 1.41 2004/05/19 16:56:40 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -367,6 +367,18 @@ test cmdAH-8.45 {Tcl_FileObjCmd: dirname} testsetplatform {
set env(HOME) $temp
set result
} {0 /homewontexist}
+test cmdAH-8.46 {Tcl_FileObjCmd: dirname} {
+ set f [file normalize [info nameof]]
+ file exists $f
+ set res1 [file dirname [file join $f foo/bar]]
+ set res2 [file dirname "${f}/foo/bar"]
+ if {$res1 eq $res2} {
+ set res "ok"
+ } else {
+ set res "file dirname problem, $res1, $res2 not equal"
+ }
+ set res
+} {ok}
# tail