summaryrefslogtreecommitdiffstats
path: root/tests/cmdAH.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-15 14:54:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-15 14:54:45 (GMT)
commit47b1f4425678fcc051e9a75f59f6c4cd4f21b176 (patch)
treecdbc77bc0588dd7ed0f06b4d9250ebb889dbb7d1 /tests/cmdAH.test
parent5e610145644e54a301c3f508b6c6fb4dcf95f7b6 (diff)
downloadtcl-47b1f4425678fcc051e9a75f59f6c4cd4f21b176.zip
tcl-47b1f4425678fcc051e9a75f59f6c4cd4f21b176.tar.gz
tcl-47b1f4425678fcc051e9a75f59f6c4cd4f21b176.tar.bz2
Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ':' in filenames as well)
Diffstat (limited to 'tests/cmdAH.test')
-rw-r--r--tests/cmdAH.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test
index dc61ac6..4ca90c6 100644
--- a/tests/cmdAH.test
+++ b/tests/cmdAH.test
@@ -104,6 +104,9 @@ test cmdAH-2.6.1 {Tcl_CdObjCmd} {
list [catch {cd ""} msg] $msg
} {1 {couldn't change working directory to "": no such file or directory}}
+test cmdAH-2.6.3 {Tcl_CdObjCmd, bug #3118489} -returnCodes error -body {
+ cd .\0
+} -result "couldn't change working directory to \".\0\": no such file or directory"
test cmdAH-2.7 {Tcl_ConcatObjCmd} {
concat
} {}