1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# safe.test --
#
# This file contains a collection of tests for safe Tcl, packages loading,
# and using safe interpreters. Sourcing this file into tcl runs the tests
# and generates output for errors. No output means no errors were found.
#
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
# 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.
#
# RCS: @(#) $Id: safe.test,v 1.7 1999/06/26 20:55:12 rjohnson Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import ::tcltest::*
}
foreach i [interp slaves] {
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# safe.test --
#
# This file contains a collection of tests for safe Tcl, packages loading,
# and using safe interpreters. Sourcing this file into tcl runs the tests
# and generates output for errors. No output means no errors were found.
#
# Copyright (c) 1995-1996 Sun Microsystems, Inc.
# 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.
#
# RCS: @(#) $Id: safe.test,v 1.8 1999/07/22 23:45:52 redman Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import ::tcltest::*
}
foreach i [interp slaves] {
|
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
SI
set r [lsort [$I eval {array names tcl_platform}]]
DI
# If running a windows-debug shell, remove the "debug" element from r.
if {$tcl_platform(platform) == "windows" && \
[lsearch $r "debug"] != -1} {
set r [lreplace $r 1 1]
}
set r
} {byteOrder platform}
# more test should be added to check that hostname, nameofexecutable,
# aren't leaking infos, but they still do...
|
>
>
>
>
|
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
SI
set r [lsort [$I eval {array names tcl_platform}]]
DI
# If running a windows-debug shell, remove the "debug" element from r.
if {$tcl_platform(platform) == "windows" && \
[lsearch $r "debug"] != -1} {
set r [lreplace $r 1 1]
}
set threaded [lsearch $r "threaded"]
if {$threaded != -1} {
set r [lreplace $r $threaded $threaded]
}
set r
} {byteOrder platform}
# more test should be added to check that hostname, nameofexecutable,
# aren't leaking infos, but they still do...
|