summaryrefslogtreecommitdiffstats
path: root/tests/security.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/security.test')
-rw-r--r--tests/security.test29
1 files changed, 10 insertions, 19 deletions
diff --git a/tests/security.test b/tests/security.test
index 79baeac..eeabc9c 100644
--- a/tests/security.test
+++ b/tests/security.test
@@ -1,18 +1,16 @@
# security.test --
#
-# Functionality covered: this file contains a collection of tests for the
-# auto loading and namespaces.
+# 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.
+# 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.5 2000/04/10 17:19:04 ericm Exp $
-if {[lsearch [namespace children] ::tcltest] == -1} {
+if {"::tcltest" ni [namespace children]} {
package require tcltest
namespace import -force ::tcltest::*
}
@@ -20,7 +18,7 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
# If this proc becomes invoked, then there is a bug
proc BUG {args} {
- set ::BUG 1
+ set ::BUG 1
}
# Check and Clear the bug flag (to do before each test)
@@ -33,7 +31,7 @@ proc CB {} {
}
-test sec-1.1 {tcl_endOfPreviousWord} {
+test security-1.1 {tcl_endOfPreviousWord} {
catch {tcl_startOfPreviousWord x {[BUG]}}
CB
} 0
@@ -42,13 +40,6 @@ test sec-1.1 {tcl_endOfPreviousWord} {
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
+# Local Variables:
+# mode: tcl
+# End: