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