summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-05-25 10:04:01 (GMT)
committersebres <sebres@users.sourceforge.net>2018-05-25 10:04:01 (GMT)
commit8145564d30cd9452a2a45816275979f61d9806f1 (patch)
treec9aea7cc1d2aab5397cb780bcd7b484d772c7819 /tests
parent1c13d543f4934c33e441ef5c77a592b9822a8823 (diff)
parent6d943ef7b5327ee4ccdf46fecd74ecbb5f75ca73 (diff)
downloadtcl-8145564d30cd9452a2a45816275979f61d9806f1.zip
tcl-8145564d30cd9452a2a45816275979f61d9806f1.tar.gz
tcl-8145564d30cd9452a2a45816275979f61d9806f1.tar.bz2
merge/reintegrate test-cases from bug-9e6b569963
Diffstat (limited to 'tests')
-rw-r--r--tests/fileSystem.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test
index 1c507e1..36a10cf 100644
--- a/tests/fileSystem.test
+++ b/tests/fileSystem.test
@@ -268,6 +268,12 @@ removeDirectory dir.dir
test filesystem-1.30 {normalisation of nonexistent user} {
list [catch {file normalize ~noonewiththisname} err] $err
} {1 {user "noonewiththisname" doesn't exist}}
+test filesystem-1.30.1 {normalisation of existing user} -body {
+ catch {file normalize ~$::tcl_platform(user)}
+} -result {0}
+test filesystem-1.30.2 {normalisation of nonexistent user specified as user@domain} -body {
+ file normalize ~nonexistentuser@nonexistentdomain
+} -returnCodes error -result {user "nonexistentuser@nonexistentdomain" doesn't exist}
test filesystem-1.31 {link normalisation: link near filesystem root} {testsetplatform} {
testsetplatform unix
file normalize /foo/../bar