diff options
Diffstat (limited to 'tests/unixFile.test')
| -rw-r--r-- | tests/unixFile.test | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/unixFile.test b/tests/unixFile.test index e2a634a..0ea0ec1 100644 --- a/tests/unixFile.test +++ b/tests/unixFile.test @@ -4,19 +4,16 @@ # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # -# Copyright © 1998-1999 Scriptics Corporation. +# Copyright (c) 1998-1999 by Scriptics Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. -if {"::tcltest" ni [namespace children]} { - package require tcltest 2.5 +if {[lsearch [namespace children] ::tcltest] == -1} { + package require tcltest namespace import -force ::tcltest::* } -::tcltest::loadTestedCommands -catch [list package require -exact tcl::test [info patchlevel]] - testConstraint testfindexecutable [llength [info commands testfindexecutable]] set oldpwd [pwd] @@ -24,7 +21,7 @@ cd [temporaryDirectory] catch { set oldPath $env(PATH) - file attributes [makeFile "" junk] -perm 0o777 + file attributes [makeFile "" junk] -perm 0777 } set absPath [file join [temporaryDirectory] junk] |
