blob: ae5f58b6ec7ff6ce9b6915abbf452465cae27927 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# security.test --
#
# Functionality covered: this file contains a collection of tests for the
# auto loading and namespaces.
#
# Sourcing this file into Tcl runs the tests and generates output for
# errors. No output means no errors were found.
#
# Copyright (c) 1997 Sun Microsystems, Inc.
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
# RCS: @(#) $Id: security.test,v 1.3 1999/06/26 03:54:25 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import ::tcltest::*
}
# If this proc becomes invoked, then there is a bug
proc BUG {args} {
set ::BUG 1
}
# Check and Clear the bug flag (to do before each test)
set ::BUG 0
proc CB {} {
set ret $::BUG
set ::BUG 0
return $ret
}
test sec-1.1 {tcl_endOfPreviousWord} {
catch {tcl_startOfPreviousWord x {[BUG]}}
CB
} 0
# cleanup
::tcltest::cleanupTests
return
|