summaryrefslogtreecommitdiffstats
path: root/tests/info.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * Updated the instructions on running and adding to the test suite.dgp2002-07-011-2/+1
| | | | | Also updated several tests, mostly to correctly create and destroy any temporary files in the [temporaryDirectory] of tcltest.
* Removed assumptions that [makeFile] creates files in the current dir.dkf2002-06-111-9/+9
|
* Duplicate test number...dkf2002-06-111-2/+2
|
* Fix for [info locals] bug #567386; added compile functions forMiguel Sofer2002-06-111-1/+3
| | | | [global], [upvar] and [variable].
* [Bug 545325 ] info level didn't report namespace eval.Miguel Sofer2002-04-181-1/+6
|
* Fixed Bug #545644; [info body] always gives a proper string now!dkf2002-04-181-5/+13
|
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-3/+3
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* Changes from TIP#15 "Functions to List and Detail Math Functions"dkf2001-05-301-10/+28
|
* * tests/info.test:hobbs2000-05-271-3/+20
| | | | | | | | * doc/info.n: * generic/tclIOUtil.c (Tcl_EvalFile): * generic/tclCmdIL.c (InfoScriptCmd): added ability to set the info script return value [info script ?newFileName?]. This will be beneficial for virtual file system programs. [Bug: 4225]
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* added test for [info body] bytecompiled object bughobbs2000-01-211-1/+16
|
* * tests/info.test:hobbs2000-01-121-1/+59
| | | | | | | | | | | * generic/tclCmdIL.c: fixed 'info procs ::namesp::*' behavior (Dejong) * tests/unixFCmd.test: * unix/tclUnixFCmd.c: added support for symbolic permissions setting in SetPermissionsAttribute (file attr $file -perm ...) [Bug: 3970] * tests/utf.test: fixed test that allowed \8 as octal value
* * tests/info.test:hobbs1999-12-121-18/+17
| | | | | | | | | | * 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.
* * unix/tclUnixThrd.c: Applied patch to fix threads on Irix 6.5.redman1999-07-311-2/+2
| | | | | | | Patch from James Dennett. [Bug: 2450] * tests/info.test: Enable test for tclParse.c change (info complete).
* Removed patch for bug 2382, for info complete.redman1999-07-231-4/+4
|
* Applied patch for info complete. [Bug: 2382]redman1999-07-221-1/+7
|
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
|
* fixed error in test reported by prochecksurles1999-05-281-2/+2
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-156/+77
|
* Fixed quoting of { in an info complete test case.welch1998-11-111-2/+2
|
* Fixed bug in "info complete" - it did not handle NULLs correctly.rjohnson1998-10-131-1/+7
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* *** empty log message ***stanton1998-06-181-0/+14
|
* Initial revisionrjohnson1998-03-261-0/+576