summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-29 13:38:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-01-29 13:38:54 (GMT)
commit4dfcbbea544e672812bc7d4de3b7571e14cccc22 (patch)
treeb821850eced56cf36f18125ff1e12d0d2d17442f /tests
parent0ea26c667c774bfee4e090ec52f391fad0af7ca5 (diff)
downloadtcl-4dfcbbea544e672812bc7d4de3b7571e14cccc22.zip
tcl-4dfcbbea544e672812bc7d4de3b7571e14cccc22.tar.gz
tcl-4dfcbbea544e672812bc7d4de3b7571e14cccc22.tar.bz2
Implement TIP #440: Add engine to tcl_platform Array
Diffstat (limited to 'tests')
-rw-r--r--tests/platform.test6
-rw-r--r--tests/safe.test2
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/platform.test b/tests/platform.test
index 51b9067..2f1cd70 100644
--- a/tests/platform.test
+++ b/tests/platform.test
@@ -20,6 +20,10 @@ namespace eval ::tcl::test::platform {
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)}}
@@ -27,7 +31,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 platform pointerSize user wordSize}
+} {byteOrder engine machine os osVersion 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 8879518..6784bb9 100644
--- a/tests/safe.test
+++ b/tests/safe.test
@@ -166,7 +166,7 @@ test safe-6.3 {test safe interpreters knowledge of the world} {
set r [lreplace $r $threaded $threaded]
}
set r
-} {byteOrder platform pointerSize wordSize}
+} {byteOrder engine platform pointerSize wordSize}
# more test should be added to check that hostname, nameofexecutable,
# aren't leaking infos, but they still do...