summaryrefslogtreecommitdiffstats
path: root/tests/info.test
Commit message (Collapse)AuthorAgeFilesLines
* test repairsdgp2016-07-221-1/+1
|
* Dup test name. Bump to TclOO 1.0.5.dgp2016-07-121-1/+1
|
* [4b61afd660] Allow [info frame] to record line info for substituted command ↵dgp2016-06-161-0/+17
|\ | | | | | | names.
| * Improve fix and add test.bug_4b61afd660dgp2016-06-161-0/+17
| |
* | Tests demonstrating the need for the last two SetLineInformation() calls.dgp2013-07-121-0/+25
| |
* | Add tests for the SetLineInformation() calls in tclEnsemble.c, and fixdgp2013-07-111-0/+25
| | | | | | the bugs around those calls exposed by the tests.
* | Add tests for SetLineInformation() calls in tclCompCmdsSZ.c as well as somedgp2013-07-101-1/+185
| | | | | | obvious refactoring improvements.
* | Add tests for SetLineInformation() calls in tclCompCmdsGR.c.dgp2013-07-101-0/+53
| |
* | Add tests for, and fix bugs in, the SetLineInformation() calls in tclCompCmds.c.dgp2013-07-101-0/+118
| |
* | Next attempt. Appears to have uncovered a bug.dgp2013-07-101-0/+14
| |
* | First additional test. Remove dup macros in tclEnsemble.c.dgp2013-07-101-0/+15
| |
* | All tests pass except one; not sure what's wrong there.dkf2013-01-021-13/+13
| |
* | merge trunkdkf2012-08-041-10/+10
|\ \
| * | fix info.test testsjan.nijtmans2012-07-301-10/+7
| | |
| * | 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)
* | | Compilation of misc info sometimes used in high-performance code.dkf2012-03-041-0/+6
|/ /
* | Better error-message in case of errors related to setting a variablejan.nijtmans2011-04-041-3/+3
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-1/+1
|\ \ | |/ | | 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-1/+1
| |\ | | | | | | 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.
| | * * tests/info.test: Resolve ambiguous resolution of variableandreas_kupries2009-11-091-2/+2
| | | | | | | | | | | | "res". Backport from 8.5
| | * * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-12/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations, TclEvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, ListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-22): Extended parser, compiler, and execution with code and attendant data structures tracking the positions of continuation lines which are not visible in script's, to properly account for them while counting lines for #280, during direct and compiled execution.
| | * * generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter,andreas_kupries2009-07-141-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclArgumentBCRelease, TclArgumentGet): * generic/tclCompile.c (EnterCmdWordIndex, TclCleanupByteCode, TclInitCompileEnv, TclCompileScript): * generic/tclCompile.h (ExtCmdLoc): * generic/tclExecute.c (TclExecuteByteCode): * generic/tclInt.h (ExtIndex, CFWordBC): * tests/info.test (info-39.0): Backport of some changes made to the Tcl head, to handle literal sharing better. The code here is much simpler (trimmed down) compared to the head as the 8.4 branch is not bytecode compiling whole files, and doesn't compile eval'd code either. Reworked the handling of literal command arguments in bytecode to be saved (compiler) and used (execution) per command (See the TCL_INVOKE_STK* instructions), and not per the whole bytecode. This removes the problems with location data caused by literal sharing in proc bodies. Simplified the associated datastructures (ExtIndex is gone, as is the function EnterCmdWordIndex).
| | * * generic/tclBasic.c: Added missing release of extended commandandreas_kupries2008-07-281-82/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | word index when deleting an interpreter (DeleteInterpProc). Added missing ref count when creating an empty string as path (EvalEx). * generic/tclCompile.c (TclInitCompileEnv): Made same change to control flow as in TclEvalObjEx. Not needed while uplevel and siblings go through the eval-direct code path, however if that changes (like it did in 8.5+) better to have this in place instead of re-searching why certain places are without absolute locations. * tests/info.test: Added tests 38.*, exactly testing the tracking of location for uplevel scripts, and made the testsuite fully usable with and without -singleproc 1.
| | * * tests/info.test: Add !singleTestInterp constraint to various tests;das2008-07-251-27/+27
| | | | | | | | | | | | | | | (info-22.8, info-23.0): switch to glob matching to avoid sensitivity to tcltest.tcl line number changes. [Bug 1605269]
| | * * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-241-1/+86
| | | | | | | | | | | | of location for uplevel scripts.
| | * Contrain the new test to run only when tip280 is active.andreas_kupries2008-07-231-2/+2
| | |
| | * * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-12/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour.
| | * * generic/tclCmdIL.c (InfoFrameCmd): Backport of fix made on theandreas_kupries2008-06-161-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/info.test: head branch :: Moved the code looking up the information for key 'proc' out of the TCL_LOCATION_BC branch to after the switch, this is common to all frame types. Updated the testsuite to match. This was exposed by the 2008-06-08 commit (Miguel), switching uplevel from direct eval to compilation. Fixes [Bug 1987851].
| | * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-5/+416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
| | * Take care with globals that have an entry in the var table but "don't exist"dkf2005-07-291-2/+15
| | |
| | * * generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in newdgp2004-11-241-1/+9
| | | | | | | | | | | | * tests/info.test (info-19.6): trivial matching branch [Bug 1072654]
| | * Make [info globals ::foo] work. [Bug 1057461]dkf2004-10-311-1/+5
| | |
| | * Removed test number dups [Bugs 710322, 710327, 710349, 710363]dkf2003-03-271-5/+5
| | |
| * | * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-151-34/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
| * | * tests/info.test (info-39.1, test_info_frame): Changed absoluteandreas_kupries2010-08-031-3/+3
| | | | | | | | | | | | | | | | | | | | | to relative frame adressing to handle difference between testing with -singleproc 1 vs. the default -singleproc 0. Plus comment fix. The test and issue are not relevant to the trunk, forward porting is not required.
| * | * generic/tclCompile.c: [Bug 2933089]: A literal sharing problem withandreas_kupries2010-02-021-1/+41
| | | | | | | | | | | | | | | | | | * generic/tclCompile.h: 'info frame' affects not only 8.6 but 8.5 as * generic/tclExecute.h: well. Backported the fix done in 8.6, without * tests/info.test: changes. New testcase info-39.1.
| * | * generic/tclBasic.c (TclEvalObjEx): Plug memory leak indgp2009-11-091-2/+2
| | | | | | | | | | | | | | | | | | TCL_EVAL_DIRECT evaluation. * tests/info.test: Resolve ambiguous resolution of variable "res".
| * | * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-10/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations, TclEvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclParse.c (TclSubstTokens, Tcl_SubstObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-24): Extended parser, compiler, and execution with code and attendant data structures tracking the positions of continuation lines which are not visible in script Tcl_Obj*'s, to properly account for them while counting lines for #280.
| * | * generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter,andreas_kupries2009-07-141-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclArgumentBCRelease, TclArgumentGet): * generic/tclCompile.c (EnterCmdWordIndex, TclCleanupByteCode, TclInitCompileEnv, TclCompileScript): * generic/tclCompile.h (ExtCmdLoc): * generic/tclExecute.c (TclExecuteByteCode): * generic/tclInt.h (ExtIndex, CFWordBC): * tests/info.test (info-39.0): Backport of some changes made to the Tcl head, to handle literal sharing better. The code here is much simpler (trimmed down) compared to the head as the 8.5 branch is not bytecode compiling whole files, and doesn't compile eval'd code either. Reworked the handling of literal command arguments in bytecode to be saved (compiler) and used (execution) per command (See the TCL_INVOKE_STK* instructions), and not per the whole bytecode. This removes the problems with location data caused by literal sharing in proc bodies. Simplified the associated datastructures (ExtIndex is gone, as is the function EnterCmdWordIndex).
| * | backport more reliable testscore_8_5_5dgp2008-10-141-20/+20
| | |
| * | * tests/info.test (info-37.0): Add !singleTestInterp constraint;das2008-07-251-21/+21
| | | | | | | | | | | | | | | | | | (info-22.8, info-23.0): switch to glob matching to avoid sensitivity to tcltest.tcl line number changes, remove knownBug constraint, fix expected result. [Bug 1605269]
| * | * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-251-13/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of location for uplevel scripts. * generic/tclCompile.c (TclInitCompileEnv): Reorganized the initialization of the #280 location information to match the flow in TclEvalObjEx to get more absolute contexts. * generic/tclBasic.c (TclEvalObjEx): Moved the pure-list optimization out of the eval-direct code path to be done always, i.e. even when a compile is requested. This way we do not loose the association between #280 location information and the list elements, if any.
| * | * tests/info.test: Reordered the tests to have monotonouslyandreas_kupries2008-07-231-151/+151
| | | | | | | | | | | | increasing numbers.
| * | Rename new test to avoid duplicate test name.andreas_kupries2008-07-231-2/+2
| | |
| * | * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdIL.c: immediately, without search. Reworked setup * generic/tclCompile.c: of eoFramePtr, doesn't need the line * tests/info.test: information, more sensible to have everything on line 1 when eval'ing a pure list. Updated the users of the line information to special case this based on the frame type (i.e. TCL_LOCATION_EVAL_LIST). Added a testcase demonstrating the new behaviour.
| * | * generic/tclCmdIL.c (TclInfoFrame): Backport of fix made on theandreas_kupries2008-06-161-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/info.test: head branch :: Moved the code looking up the information for key 'proc' out of the TCL_LOCATION_BC branch to after the switch, this is common to all frame types. Updated the testsuite to match. This was exposed by the 2008-06-08 commit (Miguel), switching uplevel from direct eval to compilation. Fixes [Bug 1987851].
* | | * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-151-33/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
* | | Fix OBOE error in the forward ported info-39.1andreas_kupries2010-08-031-5/+5
| | |
* | | * tests/info.test (info-39.1): Added forward copy of test in 8.5andreas_kupries2010-08-031-1/+42
| | | | | | | | | | | | | | | branch about [Bug 2933089]. Should not fail, and doesn't, after updating the line numbers to the changed position.