summaryrefslogtreecommitdiffstats
path: root/tests/var.test
Commit message (Collapse)AuthorAgeFilesLines
* 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]
* * tests/var.test:hobbs2001-07-041-1/+9
| | | | | * generic/tclVar.c (Tcl_VariableObjCmd): added patch to check for number of args. [Patch #426038]
* Added test for bug 119192 to test suite.dkf2000-11-171-1/+4
|
* * 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-16/+16
| | | | | | * tests/namespace.test: * tests/var.test: Added lsorts to avoid random sorted return problems. [Bug: 2682]
* * var.test: Added tests for corrected variable behavior (bug #981).ericm2000-01-211-1/+15
| | | | | | | | | | * upvar.n: Expanded explanation of upvar behavior with respect to variable traces. (bugs 3917 1433 2110). * tclVar.c: Changed behavior of variable command when name refers to an element in an array (ie, "variable foo(x)") to always return an error, regardless of existance of that element in the array (now behavior is consistant with docs too) (bug #981).
* added catch {unset t} for atomic testhobbs2000-01-211-13/+2
|
* * tests/var.test: Added a test for the array multiple deleteericm2000-01-151-1/+14
| | | | | | | | | | | protection in Tcl_UnsetVar2. * generic/tclVar.c: Added protection in Tcl_UnsetVar2 against attempts to multiply delete arrays when unsetting them (bug #3453). This could happen if there was an unset trace on an array element and the trace proc made a global or upvar link to the array, and then the array was unset at the global level. See the bug reference for more information.
* * tests/info.test:hobbs1999-12-121-1/+16
| | | | | | | | | | * tests/parseOld.test: * generic/tclCmdAH.c: * generic/tclProc.c: changed Tcl_UplevelObjCmd (uplevel) and Tcl_EvalObjCmd (eval) to use TCL_EVAL_DIRECT in the single arg case as well, to take advantage of potential pure list input optimization. This means that it won't get byte compiled though, which should be acceptable.
* 1999-09-16 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-211-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/timer.test: changed after delay in timer test 6.29 from 1 to 10. [Bug: 2796] * tests/pkg.test: * generic/tclPkg.c: fixed package version check to disallow 1.2..3 [Bug: 2539] * unix/Makefile.in: fixed gendate target - this never worked since RCS was intro'd. * generic/tclGetDate.y: updated to reflect previous changes to tclDate.c (leap year calc) and added CEST and UCT time zone recognition. Fixed 4 missing UCHAR() casts. [Bug: 2717, 954, 1245, 1249] * generic/tclCkalloc.c: changed Tcl_DumpActiveMemory to really dump to stderr and close it [Bug: 725] and changed Tcl_Ckrealloc and Tcl_Ckfree to not bomb when NULL was passed in [Bug: 1719] and changed Tcl_Alloc, et al to not panic when a alloc request for zero came through and NULL was returned (valid on AIX, Tru64) [Bug: 2795, etc] * tests/clock.test: * doc/clock.n: * generic/tclClock.c: added -milliseconds switch to clock clicks to guarantee that the return value of clicks is in the millisecs granularity [Bug: 2682, 1332] 1999-09-15 Jeff Hobbs <hobbs@scriptics.com> * generic/tclIOCmd.c: fixed potential core dump in conjunction with stacked channels with result obj manipulation in Tcl_ReadChars [Bug: 2623] * tests/format.test: * generic/tclCmdAH.c: fixed translation of %0#s in format [Bug: 2605] * doc/msgcat.n: fixed \\ bug in example [Bug: 2548] * unix/tcl.m4: * unix/aclocal.m4: added fix for FreeBSD-[1-2] recognition [Bug: 2070] and fix for IRIX SHLIB_LB_LIBS. [Bug: 2610] * doc/array.n: * tests/var.test: * tests/set.test: * generic/tclVar.c: added an array unset operation, with docs and tests. Variation of [Bug: 1775]. Added fix in TclArraySet to check when trying to set in a non-existent namespace. [Bug: 2613] 1999-09-14 Jeff Hobbs <hobbs@scriptics.com> * tests/linsert.test: * doc/linsert.n: * generic/tclCmdIL.c: fixed end-int interpretation of linsert to correctly calculate value for end, added test and docs [Bug: 2693] * doc/regexp.n: * doc/regsub.n: * tests/regexp.test: * generic/tclCmdMZ.c: add -start switch to regexp and regsub with docs and tests * doc/switch.n: added proper use of comments to example. * generic/tclCmdMZ.c: changed switch to complain when an error occurs that seems to be due to a misplaced comment. * generic/tclCmdMZ.c: fixed illegal ref for \[0-9] substitutions in regsub [Bug: 2723] * generic/tclCmdMZ.c: changed [string equal] to return an Int type object (was a Boolean)
* * Changed version to 8.2b2.redman1999-07-221-2/+7
| | | | | | | | | | | | | | | | | | * win/tclWinPort.h: Block out include of sys/*.h in order to build extensions with MetroWerks compiler for Win32. [Bug: 2385] * generic/tclCmdMZ.c: * generic/tclIO.c: Fix ANSI-style prototypes based on patch from Ulrich Ring. [Bug: 2391] * unix/Makefile.in: Need to make install-sh executable before calling (with chmod +x). [Bug: 2413] * tests/var.test: * generic/tclVar.c: Fixed bug that caused a seg. fault when using "array set a(b) {}", which is a bad array name anyway. Now the "array set" command will return an error in this case. Added test case and fixed existing test. [Bug: 2427]