summaryrefslogtreecommitdiffstats
path: root/tests/namespace.test
Commit message (Collapse)AuthorAgeFilesLines
* 3605447 Make sure the -clear option to [namespace export] always clears,dgp2013-02-211-0/+8
|\ | | | | whether or not new export patterns are specified.
| * added testbug_3605447dgp2013-02-211-0/+8
| |
* | [Bug 3185407]: Extend the set of epochs that are potentially bumped (indkf2011-06-021-0/+16
| | | | | | | | TclInvalidateNsCmdLookup) when a command is created, for a slight performance drop (in some circumstances) and improved semantics.
* | * generic/tclNamesp.c: Tighten the detector of nested [namespace code] bug_3202171dgp2011-03-091-6/+17
| | | | | | | | | | * tests/namespace.test: quoting that the quoted scriptsfunction properly even in a namespace that contains a custom "namespace" command. [Bug 3202171]
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * Bug 1400572 will remain knownBug for 8.4.14dgp2006-10-041-2/+2
| |
| * * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]dgp2006-01-091-1/+8
| | | | | | | | | | * tests/namespace.test: commands were not reported by [info level] [Bug 1400572].
| * * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-181-1/+33
| | | | | | | | | | | | | | | | * generic/tclCmdMZ.c (TraceCommandProc): * generic/tclInt.h (NS_KILLED): * generic/tclNamesp.c (Tcl_DeleteNamespace * tests/namespace.test (namespace-7.3-6): * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342].
| * * generic/tclPkg.c: Corrected inconsistencies in the value returneddgp2005-11-081-1/+13
| | | | | | | | | | | | | | | | * tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned values will always agree with what is stored in the package database. This way repeated calls to Tcl_PkgRequire(Ex) have the same results. Thanks to Hemang Lavana. [Bug 1162286]. * tests/namespace.test (25.7,8): Backport test of knownBug.
| * * 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]
| * * tests/appendComp.test: Backport test suite fixes of errorsdgp2004-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
| * * tests/compile.test (compile-12.4): Backport test for Bug 1001997.dgp2004-10-261-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/timer.test (timer-10.1): Backport test for Bug 1016167. * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections. * tests/error.test (error-6.3,4,7,9): Backport of some tests. * tests/basic.test (basic-49.*): * tests/namespace.test (namespace-8.7): * tests/init.test (init-2.8): Updated to not rely on http package. * generic/tclThreadTest.c (ThreadEventProc): Corrected subtle bug where the returned (char *) from Tcl_GetStringResult(interp) continued to be used without copying or refcounting, while activity on the interp continued.
| * * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ifieddgp2004-09-301-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/tclVar.c (CallVarTraces): Save/restore the flag * tests/var.test (var-16.1): values that define part of the interpreter state during variable traces. [Bug 10381021].
| * 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]
* | Backport of fixes to Tcl_SetNamespaceUnknownHandlerdkf2008-05-211-1/+10
| |
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | Greatly improved ensemble compiler. This one now can handle any ensemble.dkf2007-11-161-2/+2
| | | | | | | | | | It is usually not enabled though; only worth it when a subcommand is actually expected to undergo bytecode compilation.
* | * generic/tclInt.h: Removed the "nsName" Tcl_ObjType from thedgp2007-09-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: registered set. Revised the management of * generic/tclObj.c: the intrep of that Tcl_ObjType. Revised the * tests/obj.test: TclGetNamespaceFromObj() routine to return TCL_ERROR and write a consistent error message when a namespace is not found. [Bug 1588842. Patch 1686862] ***POTENTIAL INCOMPATIBILITY*** For callers of Tcl_GetObjType() on the name "nsName". * generic/tclExecute.c: Update TclGetNamespaceFromObj() callers. * generic/tclProc.c: * tests/apply.test: Updated tests to expect new consistent * tests/namespace-old.test: error message when a namespace is not * tests/namespace.test: found. * tests/upvar.test:
* | Convert [info] into an ensemble command.dkf2007-06-121-3/+6
| |
* | * generic/tclNamesp.c (NsEnsembleImplementationCmd): Make efficientdgp2007-03-121-1/+15
| | | | | | | | | | | | | | * tests/namespace.test (namespace-42.8): private copy of the command prefix as we invoke the command appropriate to a particular subcommand of a particular ensemble to avoid panic due to shimmering of the List intrep. [Bug 1670091]
* | * generic/tclNamesp.c: Corrected broken logic in Tcl_DeleteNamespace()dgp2007-02-081-4/+15
| | | | | | | | | | | | * tests/namespace.test: introduced in Patch 1577278 that caused [namespace delete ::] to be effective only at level #0. New test namespace-7.7 should prevent similar error in the future. [Bug 1655305]
* | * generic/tclNamesp.c: Corrected broken implementation of thedgp2007-02-061-1/+6
| | | | | | | | | | * tests/namespace.test: TclMatchIsTrivial optimization on [namespace children $namespace $pattern].
* | Silence complaints caused by [namespace import] returning current importsdkf2006-11-231-3/+3
| |
* | * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.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: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* | Fix [Bug 1587618], eliminating the callObjc and callObjv fields from the Interpdkf2006-10-311-3/+3
| | | | | | | | structure.
* | * generic/tclNamesp.c (EnsembleImplementationCmd):Miguel Sofer2006-10-291-1/+19
| | | | | | | | | | * tests/namespace.test (47.7-8): reverted a wrong "optimisation" that completely broke snit; added two tests.
* | * library/clock.tcl (format, scan): corrected wrong # argsMiguel Sofer2006-10-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/clock.test (3.1, 34.1): messages to make use of the new rewrite capabilities of [info level] * generic/tcl.h: Lets TEOV update the iPtr->objc/objv * generic/tclBasic.c: fields, except when the (new) flag bit * generic/tclInt.h: TCL_EVAL_NOREWRITE is present. This * generic/tclNamesp.c: causes [info level] to know and use * generic/tclProc.c: ensemble rewrites [Bug 1577492] * tests/namespace.test: ***POTENTIAL INCOMPATIBILITY*** The return value from [info level 0] on interp alias calls is changed: previously returned the target command (including curried values), now returns the source - what was actually called.
* | * tests/namespace.test (namespace-51.16): Added test.dgp2006-10-101-1/+6
| |
* | * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-091-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the global namespace, that feature is tested specifically in namespace and variable tests. The modified testfiles are: apply.test, basic.test, case.test, cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test, event.test, expr.test, fileSystem.test, for.test, http.test, if.test, incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test, misc.test, namespace.test, parse.test, parseOld.test, pkg.test, proc-old.test, set.test, switch.test, tcltest.test, thread.test, var.test, while-old.test, while.test.
* | * 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.