summaryrefslogtreecommitdiffstats
path: root/tests/fileSystem.test
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-11-03 12:44:55 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-11-03 12:44:55 (GMT)
commit37cce8feb8dce8f7ea288fb42678107db79a9a0c (patch)
tree7faccb16d2a2785049ba78869754cffc11a0ef41 /tests/fileSystem.test
parent4ee42ca0708b4db24d639e63d97a2f9c43964d0c (diff)
downloadtcl-37cce8feb8dce8f7ea288fb42678107db79a9a0c.zip
tcl-37cce8feb8dce8f7ea288fb42678107db79a9a0c.tar.gz
tcl-37cce8feb8dce8f7ea288fb42678107db79a9a0c.tar.bz2
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
Diffstat (limited to 'tests/fileSystem.test')
-rw-r--r--tests/fileSystem.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test
index 161ebc3..c255b1e 100644
--- a/tests/fileSystem.test
+++ b/tests/fileSystem.test
@@ -708,6 +708,9 @@ test filesystem-6.32 {empty file name} {
test filesystem-6.33 {empty file name} {
list [catch {file writable ""} msg] $msg
} {0 0}
+test filesystem-6.34 {file name with (invalid) nul character} {
+ list [catch "open foo\x00" msg] $msg
+} [list 1 "couldn't open \"foo\x00\": filename is invalid on this platform"]
# Make sure the testfilesystem hasn't been registered.
if {[testConstraint testfilesystem]} {