1 # The file tests the tcl_platform variable
3 # This file contains a collection of tests for one or more of the Tcl
4 # built-in commands. Sourcing this file into Tcl runs the tests and
5 # generates output for errors. No output means no errors were found.
7 # Copyright (c) 1999 by Scriptics Corporation
9 # See the file "license.terms" for information on usage and redistribution
10 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 if {[lsearch [namespace children] ::tcltest] == -1} {
15 package require tcltest
16 namespace import -force ::tcltest::*
19 test platform-1.1 {TclpSetVariables: tcl_platform} {
21 i eval {catch {unset tcl_platform(debug)}}
22 i eval {catch {unset tcl_platform(threaded)}}
23 set result [i eval {lsort [array names tcl_platform]}]
26 } {byteOrder machine os osVersion platform user}
29 ::tcltest::cleanupTests