summaryrefslogtreecommitdiffstats
path: root/tests/info.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-5/+5
|
* Remove assumption of ordered results from [info procs]dkf2010-02-101-2/+2
|
* * win/tclWinDde.c: VC++ 6.0 doesn't havenijtmans2010-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | * win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation.
* Revert mistaken commitdgp2009-11-161-5/+5
|
* (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-5/+5
| | | | manifestations in the future. Add tcltest support for finalization.
* * generic/tclObj.c: Plus memory leak in TclContinuationsEnter().andreas_kupries2009-11-101-2/+2
| | | | | [Bug 2895323]. Forward port from Tcl 8.5 branch, change by Don Porter.
* * tests/info.test: Resolve ambiguous resolution of variableandreas_kupries2009-11-091-2/+2
| | | | "res". Forward port from 8.5
* More variable cleansingdkf2009-10-291-180/+189
|
* * generic/tclLiteral.c: Fixed 2 bugs reported in [Bug 2888044].dgp2009-10-281-1/+2
| | | | | | | | | | | * tests/info.test: First, as noted in the comments of the TclCleanupLiteralTable routine, since the teardown of the intrep of one Tcl_Obj can cause the teardown of others in the same table, the full table cleanup must be done with care, but the code did not contain the same care demanded in the comment. Second, recent additions to the info.test file had poor hygiene, leaving an array variable ::a lying around, which breaks later interp.test tests during a -singleproc 1 run of the test suite.
* * generic/tclParse.c Corrected line counting error in multi-commanddgp2009-09-071-1/+6
| | | | * tests/into.test: script substitutions. [Bug 2850901].
* * generic/tclCompCmds.c (TclCompileSubstCmd): Added a bytecodedgp2009-09-041-4/+119
| | | | | | | | | | | | | * generic/tclBasic.c: compiler routine for the [subst] command. * generic/tclCmdMZ.c: This is a partial solution to the need to * generic/tclCompile.c: NR-enable [subst] since bytecode execution is * generic/tclCompile.h: already NR-enabled. [Bug 2314561] Two new * generic/tclExecute.c: bytecode instructions, INST_NOP and * generic/tclInt.h: INST_RETURN_CODE_BRANCH were added to support * generic/tclParse.c: the new routine. INST_RETURN_CODE_BRANCH is * tests/basic.test: likely to be useful in any future effort to * tests/info.test: add a bytecode compiler routine for [try]. * tests/parse.test:
* * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-12/+285
| | | | | | | | | | | | | | | | | | | | | | | Tcl_EvalEx, TclEvalEx, TclAdvanceContinuations, TclNREvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript, TclCompileTokens): * 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 the parser, compiler, and execution engine with code and attendant data structures tracking the position of continuation lines which are not visible in the resulting script Tcl_Obj*'s, to properly account for them while counting lines for #280.
* * generic/tclCompile.c (TclInitCompileEnv, EnterCmdWordIndex,andreas_kupries2009-07-141-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclCleanupByteCode, TclCompileScript): * generic/tclExecute.c (TclCompileObj, TclExecuteByteCode): * tclCompile.h (ExtCmdLoc): * tclInt.h (ExtIndex, CFWordBC, CmdFrame): * tclBasic.c (DeleteInterpProc, TclArgumentBCEnter, TclArgumentBCRelease, TclArgumentGet, SAVE_CONTEXT, RESTORE_CONTEXT, NRCoroutineExitCallback, TclNRCoroutineObjCmd): * generic/tclCmdAH.c (TclNRForObjCmd, TclNRForIterCallback, ForNextCallback): * generic/tclCmdMZ.c (TclNRWhileObjCmd): Extended the bytecode compiler initialization to recognize the compilation of whole files (NRE enabled 'source' command) and switch to the counting of absolute lines in that case. Further extended the bytecode compiler to track the start line in the generated information, and modified the bytecode execution to recompile an object if the location as per the calling context doesn't match the location saved in the bytecode. This part could be optimized more by using more memory to keep all possibilities which occur around, or by just adjusting the location information instead of a total recompile. 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, and the previous change remove the problems with location data caused by literal sharing (across whole files, but also proc bodies). Simplified the associated datastructures (ExtIndex is gone, as is the function EnterCmdWordIndex). The last change causes the hashtable 'lineLABCPtr' to be state which has to be kept per coroutine, like the CmdFrame stack. Reworked the coroutine support code to create, delete and switch the information as needed. Further reworked the tailcall command as well, it has to pop its own arguments when run in a bytecode context to keep a proper stack in 'lineLABCPtr'. Fixed the mishandling of line information in the NRE-enabled 'for' and 'while' commands introduced when both were made to share their iteration callbacks without taking into account that the loop body is found in different words of the command. Introduced a separate data structure to hold all the callback information, as we went over the limit of 4 direct client-data values for NRE callbacks. The above fixes [Bug 1605269].
* oopsdgp2008-10-141-2/+2
|
* add missing constraintsdgp2008-10-141-2/+3
|
* * generic/tclBasic.c: Move [tailcall], [coroutine] andMiguel Sofer2008-10-071-5/+5
| | | | | | * generic/tclCmdIL.c: [yield] out of ::tcl::unsupported * tests/info.test: and into global scope: TIPs #327 * tests/unsupported.test: and #328
* * tests/info.test (info-23.3): See [SF Bug 2017632]. Updatedandreas_kupries2008-10-021-3/+3
| | | | | output of the test to handle the NRE-enabled eval and the proper propagation of location information through it.
* * tests/info.test (info-22.8): Fixed [SF Bug 2129828]. Madeandreas_kupries2008-10-021-2/+2
| | | | | pattern for file containing tcltest less specific to accept both .tcl and .tm variants of the file during matching.
* * generic/tclBasic.c: Revised timing of the CmdFrame stack managementdgp2008-08-011-1/+8
| | | | | | | | * tests/info.test: in TclEvalEx so that the CmdFrame will still be on the stack at the time Tcl_LogCommandInfo is called to append another level of -errorinfo information. Sets the stage to add file and line data to the stack trace. Added test to check that [info frame] functioning remains unchanged by the revision.
* * test/info.test: More work on singleTestInterp usability. Thisandreas_kupries2008-07-251-51/+55
| | | | fixes bug [1605269].
* * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-251-15/+95
| | | | | | | | | | | | | | | | | of location for uplevel scripts. Resolved merge conflict on info-37.0, switched !singleTestInterp constraint to glob matching instead. Ditto info-22.8, removed constraint, more glob matching, and reduced the depth of the stack we check. More is coming, right now I want to commit the bug fixes. * tests/oo.test: Updated oo-22.1 for expanded location tracking. * 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): Added missing cleanup of extended location information.
* * 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: Reordered the tests to have monotonouslyandreas_kupries2008-07-231-154/+154
| | | | 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/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-7/+7
| | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c: * tests/info.test:
* fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-2/+2
|
* * generic/tclCmdIL.c (TclInfoFrame): Moved the code looking up theandreas_kupries2008-06-161-8/+8
| | | | | | | | * tests/info.test: 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].
* Implementation of TIP #257. Incomplete due to missing Win build support.dkf2008-05-311-5/+5
|
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * library/tcltest/tcltest.tcl: Accept underscores and colons indgp2007-09-111-3/+3
| | | | | | | * library/tcltest/pkgIndex.tcl: constraint names. Properly handle constraint expressions that return non-numeric boolean results like "false". Bump to tcltest 2.3b1. [Bug 1772989; RFE 1071322] * tests/info.test: Disable fragile tests.
* Convert [info] into an ensemble command.dkf2007-06-121-226/+227
|
* * unix/configure: autoconf-2.59 (FC6 fork)dgp2007-05-181-17/+17
| | | | | | | | | | | | | | | | | * win/configure: * README: Bump version number to 8.5a7 * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * generic/tclParse.c: Disable and remove the ALLOW_EXPAND sections * tests/info.test: that continued to support the deprecated * tests/mathop.test: {expand} syntax. Updated the few remaining users of that syntax in the test suite.
* * tests/info.test: add !singleTestInterp constraint to tests that faildas2006-12-171-16/+16
| | | | when running testsuite with -singleproc 1. [Bug 1605269]
* adjust tcltest.tcl line numbers in info-22.8 & info-23.6 that changed by ↵das2006-12-101-3/+3
| | | | last tcltest.tcl commit.
* TIP#299 IMPLEMENTATIONKevin B Kenny2006-12-011-2/+2
|
* * generic/tclBasic.c: TIP #280 implementation.andreas_kupries2006-11-281-5/+630
| | | | | | | | | | | | | | | | | | | | | * 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:
* Fix [Bug 1587618], eliminating the callObjc and callObjv fields from the Interpdkf2006-10-311-5/+3
| | | | structure.
* * tests/info.test (info-9.11-12): tests for [Bug 1577492]Miguel Sofer2006-10-241-1/+20
| | | | * tests/apply.test (apply-4.3-5): tests for [Bug 1574835]
* Undo mistaken commit to wrong branch caused by CVS fumble... :-}dkf2006-10-201-9/+5
|
* Consolidated TIP#257 patch applied to HEAD to allow for experimentation bydkf2006-10-201-5/+9
| | | | other developers
* * tests/compExpr-old.test: Updated testmathfunctions constraintdgp2006-04-061-2/+2
| | | | | | | | | | * tests/compExpr.test: to post-TIP-232 world. * tests/expr-old.test: * tests/expr.test: * tests/info.test: * tests/indexObj.test: Corrected other test errors revealed by * tests/upvar.test: testing outside the tcltest application.
* TIP#237 introduced a new function, entier, so add it to the list of functions.dkf2005-10-101-5/+4
|
* implementation for TIP #255, expr min/maxhobbs2005-09-291-3/+3
|
* Take care with globals that have an entry in the var table but "don't exist"dkf2005-07-291-2/+15
|
* TIP#229 implementationdkf2005-05-301-1/+2
|
* TIP#182 IMPLEMENTATION [Patch 1165062]dgp2005-05-251-3/+3
| | | | | | | * doc/mathfunc.n: New built-in math function bool(). * generic/tclBasic.c: * tests/expr.test: * tests/info.test: