os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/tests/security.test
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/tests/security.test	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,54 @@
     1.4 +# security.test --
     1.5 +#
     1.6 +# Functionality covered: this file contains a collection of tests for the
     1.7 +# auto loading and namespaces.
     1.8 +#
     1.9 +# Sourcing this file into Tcl runs the tests and generates output for
    1.10 +# errors. No output means no errors were found.
    1.11 +#
    1.12 +# Copyright (c) 1997 Sun Microsystems, Inc.
    1.13 +# Copyright (c) 1998-1999 by Scriptics Corporation.
    1.14 +# All rights reserved.
    1.15 +#
    1.16 +# RCS: @(#) $Id: security.test,v 1.5 2000/04/10 17:19:04 ericm Exp $
    1.17 +
    1.18 +if {[lsearch [namespace children] ::tcltest] == -1} {
    1.19 +    package require tcltest
    1.20 +    namespace import -force ::tcltest::*
    1.21 +}
    1.22 +
    1.23 +# If this proc becomes invoked, then there is a bug
    1.24 +
    1.25 +proc BUG {args} {
    1.26 +  set ::BUG 1
    1.27 +}
    1.28 +
    1.29 +# Check and Clear the bug flag (to do before each test)
    1.30 +set ::BUG 0
    1.31 +
    1.32 +proc CB {} {
    1.33 +    set ret $::BUG
    1.34 +    set ::BUG 0
    1.35 +    return $ret
    1.36 +}
    1.37 +
    1.38 +
    1.39 +test sec-1.1 {tcl_endOfPreviousWord} {
    1.40 +    catch {tcl_startOfPreviousWord x {[BUG]}}
    1.41 +    CB
    1.42 +} 0
    1.43 +
    1.44 +# cleanup
    1.45 +::tcltest::cleanupTests
    1.46 +return
    1.47 +
    1.48 +
    1.49 +
    1.50 +
    1.51 +
    1.52 +
    1.53 +
    1.54 +
    1.55 +
    1.56 +
    1.57 +