diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-29 13:35:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-01-29 13:35:00 (GMT) |
commit | 2f90de6166e0253955f4e7ce895ddb63c0d4f05d (patch) | |
tree | ec4b6b7a6239e90990825b90c61cc811b29c0824 /tests | |
parent | 3fa3e3b2d59022f67a190c83e215f789ce836e2e (diff) | |
parent | 28d25fa6cf8d801e60d1d41099179e356ef8ecae (diff) | |
download | tcl-2f90de6166e0253955f4e7ce895ddb63c0d4f05d.zip tcl-2f90de6166e0253955f4e7ce895ddb63c0d4f05d.tar.gz tcl-2f90de6166e0253955f4e7ce895ddb63c0d4f05d.tar.bz2 |
Implement TIP #440: Add engine to tcl_platform Array
Diffstat (limited to 'tests')
-rw-r--r-- | tests/platform.test | 6 | ||||
-rw-r--r-- | tests/safe.test | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/platform.test b/tests/platform.test index cc00d49..c826444 100644 --- a/tests/platform.test +++ b/tests/platform.test @@ -23,6 +23,10 @@ catch [list package require -exact Tcltest [info patchlevel]] testConstraint testCPUID [llength [info commands testcpuid]] +test platform-1.0 {tcl_platform(engine)} { + set tcl_platform(engine) +} {Tcl} + test platform-1.1 {TclpSetVariables: tcl_platform} { interp create i i eval {catch {unset tcl_platform(debug)}} @@ -30,7 +34,7 @@ test platform-1.1 {TclpSetVariables: tcl_platform} { set result [i eval {lsort [array names tcl_platform]}] interp delete i set result -} {byteOrder machine os osVersion pathSeparator platform pointerSize user wordSize} +} {byteOrder engine machine os osVersion pathSeparator platform pointerSize user wordSize} # Test assumes twos-complement arithmetic, which is true of virtually # everything these days. Note that this does *not* use wide(), and diff --git a/tests/safe.test b/tests/safe.test index 859f352..94c1755 100644 --- a/tests/safe.test +++ b/tests/safe.test @@ -174,7 +174,7 @@ test safe-6.3 {test safe interpreters knowledge of the world} { } set r [lsearch -all -inline -not -exact $r "threaded"] lsort $r -} {byteOrder pathSeparator platform pointerSize wordSize} +} {byteOrder engine pathSeparator platform pointerSize wordSize} # More test should be added to check that hostname, nameofexecutable, aren't # leaking infos, but they still do... |