diff options
Diffstat (limited to 'tcl/tests/platform.test')
-rw-r--r-- | tcl/tests/platform.test | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tcl/tests/platform.test b/tcl/tests/platform.test new file mode 100644 index 00000000000..9c7dec51a5d --- /dev/null +++ b/tcl/tests/platform.test @@ -0,0 +1,41 @@ +# The file tests the tcl_platform variable +# +# This file contains a collection of tests for one or more of the Tcl +# built-in commands. Sourcing this file into Tcl runs the tests and +# generates output for errors. No output means no errors were found. +# +# Copyright (c) 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. +# +# RCS: @(#) + +if {[lsearch [namespace children] ::tcltest] == -1} { + package require tcltest + namespace import -force ::tcltest::* +} + +test platform-1.1 {TclpSetVariables: tcl_platform} { + interp create i + i eval {catch {unset tcl_platform(debug)}} + i eval {catch {unset tcl_platform(threaded)}} + set result [i eval {lsort [array names tcl_platform]}] + interp delete i + set result +} {byteOrder machine os osVersion platform user} + +# cleanup +::tcltest::cleanupTests +return + + + + + + + + + + + |