summaryrefslogtreecommitdiffstats
path: root/tests/var.test
Commit message (Collapse)AuthorAgeFilesLines
* [4dbdd9af14] Plug mem leak when var unset trace re-creates namespace var. ↵dgp2016-09-071-0/+16
|\ | | | | | | Thanks mr_calvin for report and fix.
| * [4dbdd9af14] Plug mem leak when var unset trace re-creates namespace var. ↵dgp2016-09-071-0/+30
| |\ | | | | | | | | | Thanks mr_calvin for report and fix.
| | * Improve the comments and add a test.bug_4dbdd9af14dgp2016-09-071-0/+31
| | |
* | | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached ↵dgp2016-07-181-2/+4
|\ \ \ | |/ / | | | | | | | | | channel name lookups. Also merge backlog of test suite & doc improvements.
| * | [77d58e3a7a] Test case independence: var.dkf2016-07-171-2/+4
| | |
* | | New test demonstrates memleak discovered by Rolf Ade.dgp2016-07-141-8/+22
| | |
* | | merge 8.6dgp2016-07-131-15/+31
|\ \ \ | |/ /
| * | [3606388] Make variable-related tests work on their own.dkf2016-07-121-15/+31
| | |
* | | Eliminate exess spacings in many test-casesjan.nijtmans2016-03-101-6/+6
|/ /
* | Add test for memleakdgp2016-03-011-0/+28
| |
* | merge trunkdgp2015-07-171-1/+17
|\ \
| * | Resolve test conflicts over global varsdgp2014-10-101-2/+7
| | |
| * | test casesbug_bc1a96407adgp2014-10-031-0/+11
| | |
| * | [2486824] Improve error message; not all that upvars is an upvar.dkf2014-09-101-1/+1
| |\ \ | | |/
| | * [2486824] Improve error message; not all that upvars is an upvar.dkf2014-09-101-1/+1
| | |
* | | [a3309d01db] Test the demonstrates leak in branch off checkin that starts it.dgp2015-07-171-0/+28
|/ /
* | [3970f54c4e]: Corrected regression in argument order processing in [unset].dkf2013-09-191-0/+3
| |
* | Line numbers wrong in compiled [unset].dgp2013-09-191-0/+13
| |
* | [3603163]: Prevent odd crashes in 'eval {array set ...}'dkf2013-02-041-0/+69
| |
* | No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+3
| | | | | | | | combination with tcltest86.dll to do that (Windows only)
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-3/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-3/+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-3/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclVar.c (TclArraySet): Re-fetch pointers for the listdgp2007-03-131-1/+13
| | | | | | | | | | | | | | | | | | * tests/var.test (var-17.1): argument of [array set] each time through the loop as defense against possible shimmer issues. [Bug 1669489].
| | * * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ifieddgp2004-09-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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].
| | * * generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix,Miguel Sofer2003-05-121-1/+15
| | | | | | | | | | | | | | | disabling usage of tclNsVarNameType. * tests/var.test (var-15.1): test for [Bug 735335]
| | * * generic/tclVar.c:Miguel Sofer2003-03-241-1/+11
| | | | | | | | | | | | | | | * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the created local variable, bugs #631741 and #696893.
| * | * tests/var.test (var-19.1): [Bug 3037525]: Added testandreas_kupries2010-08-031-1/+8
| | | | | | | | | | | | demonstrating the local hashtable deletion crash and fix.
| * | Fix [Bug 2939073]: dangling ref when an unset trace triggered by [array unset]dkf2010-02-021-5/+29
| | | | | | | | | | | | hits the next element to be deleted.
* | | Clean up of tests and conversion to tcltest 2. Target has been to get init anddkf2011-01-011-4/+4
| | | | | | | | | | | | cleanup code out of the test body and into the -setup/-cleanup stanzas.
* | | * tests/fCmd.test, tests/safe.test, tests/uplevel.test,dkf2010-12-071-177/+201
| | | | | | | | | | | | | | | * tests/upvar.test, tests/var.test: Convert more tests to tcltest2 and factor them to be easier to understand.
* | | * tests/var.test (var-19.1): [Bug 3037525]: Added testandreas_kupries2010-08-031-1/+8
| | | | | | | | | | | | demonstrating the local hashtable deletion crash and fix.
* | | Fix [Bug 2939073]: dangling ref when an unset trace triggered by [array unset]dkf2010-02-021-5/+29
| | | | | | | | | | | | hits the next element to be deleted.
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-251-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | * doc/global.n: Revise [global] to accept zero variable names. * doc/variable.n: Revise [variable] likewise. * generic/tclVar.c: * tests/proc-old.test: * tests/var.test:
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/global.n: Revise [global] to accept zero variable names. * generic/tclVar.c: * tests/proc-old.test: * tests/var.test: * doc/global.n: Correct false claim about [info locals].
* | | more consistent wrong # arg messages: change all messages containing ↵nijtmans2008-07-131-3/+3
|/ / | | | | | | ?options? to the form ?-option value ...?
* | * generic/tclVar.c (TclDeleteNamespaceVars):Miguel Sofer2008-03-111-1/+17
| | | | | | | | | | | | | | * tests/var.test (var-8.2): unset traces on vars should be called with a FQ named during namespace deletion. This was causing infinite loops when unset traces recreated the var, as reported by Julian Noble on [Bug 1911919].
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclVar.c (Tcl_ArrayObjCmd): handle the right data forhobbs2007-11-231-1/+5
| | | | | | | | * tests/var.test (var-14.2): [array names $var -glob $ptn]
* | * generic/tclVar.c (TclArraySet): Make efficient private copy ofdgp2007-03-121-1/+13
| | | | | | | | | | * tests/var.test (var-17.1): the "list" argument to [array set] to avoid crash due to shimmering invalidating pointers. [Bug 1669489].
* | * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (Tcl_AddObjErrorInfo): More re-organizationdgp2004-09-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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].
* | Silly errordkf2004-05-191-2/+2
| |
* | Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-60/+55
| | | | | | | | necessary.
* | * doc/global.n:Miguel Sofer2004-04-281-1/+6
| | | | | | | | | | | | | | | | * doc/upvar.n: * generic/tclVar.c (ObjMakeUpvar): * tests/upvar.test (upvar-8.11): * tests/var.test (var-3.11): Avoid creation of unusable variables: [Bug 600812] [TIP 184].
* | * generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix,Miguel Sofer2003-05-121-1/+16
| | | | | | | | | | disabling usage of tclNsVarNameType. * tests/var.test (var-15.1): test for [Bug 735335]
* | * generic/tclVar.c:Miguel Sofer2003-03-241-1/+11
|/ | | | | * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the created local variable, bugs #631741 and #696893.
* * generic/tclVar.c: Fixed code that check for proper # of args todgp2002-10-171-2/+6
| | | | * tests/var.test: [array names]. Added test. [Bug 624755]
* * generic/tclVar.c: refactorisation to reuse already looked-up VarMiguel Sofer2002-07-151-2/+2
| | | | | | | | | | | | | | | | | | pointers; definition of three new Tcl_Obj types to cache variable name parsing and lookup for later reuse; modification of internal functions to profit from the caching. * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclNamesp.c: adding CONST qualifiers to variable names passed to Tcl_FindNamespaceVar and to variable resolvers; adding CONST qualifier to the 'msg' argument to TclLookupVar. Needed to avoid code duplication in the new tclVar.c code. * tests/set-old.test: * tests/var.test: slight modification of error messages due to the modifications in the tclVar.c code.
* * tests/var.test:dgp2001-11-091-1/+11
| | | | | * generic/tclVar.c: Corrected bug in [global] when dealing with variable names matching :*. [Bug 480176]