summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBALdgp2006-02-281-5/+6
| | | | | | | * tests/namespace.test: evaluations act the same as [uplevel #0] * tests/parse.test: evaluations, even when execution traces or * tests/trace.test: invocations of [::unknown] are present. [Bug 1439836].
* added missing constraintdgp2006-02-271-2/+5
|
* * generic/tclBasic.c: Corrected a few bugs in how [namespace unknown]dgp2006-02-221-1/+68
| | | | * tests/namespace.test: interacts with TCL_EVAL_* flags. [Patch 958222]
* TIP#181 IMPLEMENTATIONdgp2006-02-011-1/+91
| | | | | | | | | | | | | * doc/Namespace.3: New command [namespace unknown]. New public * doc/namespace.n: C routines Tcl_(Get|Set)NamespaceUnknownHandler. * doc/unknown.n: [Patch 958222]. * generic/tcl.decls: * generic/tclBasic.c: * generic/tclInt.h: * generic/tclNamesp.c: * tests/namespace.test: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* TIP#250 IMPLEMENTATIONdgp2006-02-011-7/+12
| | | | | | | | | * doc/namespace.n: New command [namespace upvar]. [Patch 1275435] * generic/tclInt.h: * generic/tclNamesp.c: * generic/tclVar.c: * tests/namespace.test: * tests/upvar.test:
* Fix test suite bugs exposed by -singleproc 1 -debug 1 run. Each testdgp2006-01-181-1/+4
| | | | | file needs to avoid stomping on the assumptions of other files, and protect against getting stomped as well.
* * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]dgp2006-01-091-1/+8
| | | | | * tests/namespace.test: commands were not reported by [info level] [Bug 1400572].
* * tests/namespace.test: fix commentMiguel Sofer2005-11-171-2/+2
|
* added comments to tests/namespace.testMiguel Sofer2005-11-141-1/+5
|
* * generic/tclInt.h:Miguel Sofer2005-11-141-5/+37
| | | | | | | | | * generic/tclNamesp.c: * tests/namespace.test: fix for bugs #1354540 and #1355942. The new tests 7.3-6 and the modified 51.13 fail due to the unrelated [Bug 1355342] * tests/trace.test: added tests 20.13-16 for [Bug 1355342]
* * generic/tclNamesp.c: Allow for [namespace import] of a commanddgp2005-07-051-2/+2
| | | | | * tests/namespace.test: over a previous [namespace import] of itself without throwing an error. [RFE 1230597]
* Fix [Bug 1220058] and quash a bizarre case which generated a bogus error msg.dkf2005-06-141-1/+14
| | | | Thanks to Will Duquette for helping to track this one down.
* TIP#229 implementationdkf2005-05-301-3/+386
|
* Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-291-1/+32
| | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage
* * tests/clock.test: Correct duplicate test names.dgp2004-10-281-2/+2
| | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables.
* Make ensembles report shorter error traces that conceal more of how thedkf2004-10-221-7/+5
| | | | ensemble implements itself. This is usually the right thing to do.
* * tests/namespace.test (namespace-8.7): Another test for save/restoredgp2004-10-021-1/+8
| | | | of ::errorInfo and ::errorCode during global namespace teardown.
* * generic/tclBasic.c (Tcl_AddObjErrorInfo): More re-organizationdgp2004-09-301-1/+19
| | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c (Tcl_ErrorObjCmd): of the management of * generic/tclCmdMZ.c (TclProcessReturn): the errorCode value. * tests/error.test (error-6.4-9): * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ified * tests/namespace.test (namespace-8.5,6): the save/restore of ::errorInfo and ::errorCode during global namespace teardown. Revised the comment to clarify why this is done, and added tests that will fail if this is not done. * generic/tclResult.c (TclTransferResult): Added safety checks so that unexpected undefined ::errorInfo or ::errorCode will not lead to a segfault. * generic/tclTrace.c (TclCallVarTraces): Save/restore the flag * tests/var.test (var-16.1): values that define part of the interpreter state during variable traces. [Bug 10381021].
* * generic/tclBasic.c: Corrections to the 2004-09-21 commitdgp2004-09-241-1/+13
| | | | | | | | * generic/tclExecute.c: regarding ERR_ALREADY_LOGGED. That commit * generic/tclNamesp.c: caused Tk test send-10.7 to fail. Added * tests/namespace.test (25.7,8): tests in the Tcl test suite * tests/pkg.test (2.25,26): to catch this error without the aid of Tk in the future.
* Fix [Bug 1026903] by storing what ensemble the ensemble is cached for.dkf2004-09-131-1/+12
|
* Also corrected faulty prevention of [namespace import] cycles.dgp2004-09-091-1/+45
| | | | [Bug 1017299]
* * generic/tclNamesp.c (Tcl_ForgetImport): Corrected faultydgp2004-09-091-1/+115
| | | | | * tests/namespace.test: logic that relied exclusively on string matching and failed in the presence of [rename]s. [Bug 560297]
* Make [namespace which] use newer option parsing code for more flexibility.dkf2004-08-271-5/+5
|
* Fix/improve testsdkf2004-08-271-5/+15
|
* Fix [Bug 1017022] by factorizing out the ensemble lookup code and fixing once.dkf2004-08-271-2/+41
|
* D'oh! Put the correct value in... :^}dkf2004-08-251-2/+2
|
* Stop test from getting stomped by preceding tests...dkf2004-08-251-2/+2
|
* Fixes to ensemble -unknown handler processing to stop [namespace import] fromdkf2004-08-251-1/+27
| | | | | disrupting things horribly. Problem found by Don Porter when investigating [Bug 1016167].
* * generic/tclNamesp.c (Tcl_FindNamespaceVar):Miguel Sofer2004-05-251-24/+14
| | | | | | | | | | | | | | | | * tests/namespace.test (namespace-17.10-12): reverted commit of 2004-05-23 and removed the tests, as it interferes with the varname resolver and there are apps that break (AlphaTk). A fix will have to wait for Tcl9. * generic/tclVar.c: Caching of namespace variables disabled: no simple way was found to avoid interfering with the resolver's idea of variable existence. A cached varName may keep a variable's name in the namespace's hash table, which is the resolver's criterion for existence. * tests/namespace.c (namespace-17.10): testing for interference between varname caching and name resolver.
* * tests/unload.test (unload-3.1): Verify [pkgb_sub] does not exist.dgp2004-05-251-1/+2
| | | | | | * tests/stringComp.test: stop re-use of string.test test names * tests/regexpComp.test: stop re-use of regexp.test test names * tests/namespace.test (namespace-46.3): Verify [p] does not exist.
* * generic/tclNamesp.c (Tcl_FindNamespaceVar): [Bug 959052] fixed,Miguel Sofer2004-05-231-1/+25
| | | | | | | insuring that no "zombie" variables are found. * generic/tclVar.c (TclLookupSimpleVar): comments re [Bug 736729] (predecessor of [Bug 959052]) removed. * tests/namespace.test: added tests 17.10-12
* * tests/namespace.test (namespace-41.3): removed the {knownBug}Miguel Sofer2004-05-221-2/+2
| | | | | constraint: [Bug 231259] is closed since nov 2001, and the fix of [Bug 729692] (INST_START_CMD) makes the test succeed.
* Silly bug found originally by Damon Courtney. [922752]dkf2004-03-241-1/+8
|
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-52/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* TIP#112 ([namespace ensemble] command) implementation.dkf2003-09-291-13/+448
|
* * Corrections to tcltest and the Tcl test suite so that a testdgp2002-06-221-3/+3
| | | | | | | with options -constraints knownBug -limitConstraints 1 only tests the knownBug tests. Mostly involves replacing direct access to the testConstraints array with calls to the testConstraint command (which requires tcltest version 2).
* Modified test namespace-41.2, added 41.3Miguel Sofer2001-11-291-3/+17
|
* added new test for bug 231259Miguel Sofer2001-11-291-3/+20
|
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-231-1/+3
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435658) see ChangeLog for details
* * Corrected tests to better isolate tests indgp2001-09-121-1/+2
| | | | one file from influencing tests in other files. [Bug 460591]
* Patch from [Bug: 231259]Miguel Sofer2001-05-151-1/+15
|
* Patch for bug #420507Miguel Sofer2001-05-031-1/+12
|
* Corrected behaviour of [namespace code] (bug #219385, patch #403530)Miguel Sofer2001-04-071-3/+14
|
* * doc/namespace.n:hobbs2000-05-111-4/+24
| | | | | | * tests/namespace.test: * generic/tclNamesp.c (Tcl_NamespaceObjCmd): added 'namespace exists' command. [Bug: 4665]
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/foreach.test:hobbs2000-04-041-13/+13
| | | | | | * tests/namespace.test: * tests/var.test: Added lsorts to avoid random sorted return problems. [Bug: 2682]
* * tests/httpd: removed unnecessary 'puts stderr "Post Dispatch"'hobbs2000-03-271-3/+3
| | | | | | | * tests/namespace.test: * generic/tclNamesp.c (Tcl_Export): added a uniq'ing test to the export list so only one instance of each export pattern would exist in the list.
* * generic/tclNamesp.c: Undid fix for #956, which broke backwardsericm2000-01-261-8/+1
| | | | | | | | | | | | | compatibility. * doc/variable.n: * doc/trace.n: * doc/namespace.n: * doc/info.n: Added further information about differences between "namespace which" and "info exists". * doc/SetErrno.3: Added descriptions of ErrnoId() and ErrnoMsg() functions.
* * namespace.test: Added test for undefined variables withericm2000-01-211-1/+8
| | | | | | | namespace which (bug #956). * tclNamesp.c: Added check for undefined variables in NamespaceWhichCmd (bug #956).
* * tests/info.test:hobbs2000-01-121-3/+3
| | | | | | | | | | | * generic/tclCmdIL.c: fixed 'info procs ::namesp::*' behavior (Dejong) * tests/unixFCmd.test: * unix/tclUnixFCmd.c: added support for symbolic permissions setting in SetPermissionsAttribute (file attr $file -perm ...) [Bug: 3970] * tests/utf.test: fixed test that allowed \8 as octal value