summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert mistaken commitdgp2009-11-165-47/+25
|
* (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-166-27/+50
| | | | manifestations in the future. Add tcltest support for finalization.
* * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-1/+32
| | | | | | * tests/io.test: which used the number of _written_ bytes or character to update the counters for the read bytes/characters. New test io-53.11. This is a forward port from the 8.5 branch.
* Cleanup directories that have been set chmod 000.patthoyts2009-11-101-10/+30
| | | | | | | | | On Windows7 and Vista we really have no access and these were getting left behind. A few tests were changed to reflect the intent of the test where setting a directory chmod 000 should prevent any modification. This restriction was ignored on XP but is honoured on Vista
* * 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
* [Bug 2891026] add addtional contraints for vista+ for non-readable directoriespatthoyts2009-11-071-9/+26
|
* * library/safe.tcl: A series of patches which bring the SafeBaseandreas_kupries2009-11-051-18/+1
| | | | | | | | | up to date with code guidelines, Tcl's features, also eliminating a number of inefficiencies along the way. (8) Converted the path token system to cache normalized paths and path <-> token conversions. Removed more procedures not used any longer. Removed the test cases 4.3 and 4.4 from safe.test. They were testing the now deleted command "InterpStateName".
* More variable hygiene.dkf2009-10-301-146/+229
|
* Cleanup non-writable test directory on Windows.patthoyts2009-10-301-1/+2
| | | | | | | When creating the notwritabledir we deny the current user access to delete the file. We must grant this right when we cleanup. Required on Windows 7 when the user does not automatically have administrator rights.
* More variable cleansingdkf2009-10-291-180/+189
|
* test hygiene for the ::tmp variabledgp2009-10-294-9/+17
|
* More variable cleansingdkf2009-10-291-247/+432
|
* General cleanliness improvements.dkf2009-10-291-255/+408
|
* * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-1/+5
| | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
* * 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.
* * tests/fileName.test (fileName-20.[78]): Corrected poor testKevin B Kenny2009-10-281-1/+12
| | | | | | hygiene (failure to save and restore the working directory) that caused these two tests to fail on Windows (and [Bug 2806250] to be reopened).
* * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-1/+14
| | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
* * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-1/+11
| | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
* Let [$obj varname x(y)] work. [Bug 2883857]dkf2009-10-221-1/+12
|
* Fix for [Bug 1565466]Joe Mistachkin2009-10-181-4/+7
|
* [Bug 2874678]: Don't leak bignums in [dict incr]...dkf2009-10-081-15/+22
|
* * generic/tclCmdMZ.c: Replaced TclProcessReturn() calls withdgp2009-09-281-1/+15
| | | | | | * tests/error.test: Tcl_SetReturnOptions() calls as a simple fix for [Bug 2855247]. Thanks to Anton Kovalenko for the report and fix. Additional fixes for other failures demonstrated by new tests.
* * tests/error.test (error-15.9.*): More coverage tests for [try].dgp2009-09-281-2/+11
| | | | Test error-15.9.3.0.0 covers [Bug 2855247].
* * tests/error.test (error-15.8.*): Coverage tests illustratingdgp2009-09-281-1/+18
| | | | flaws in the propagation of return options by [try].
* * tests/regexp.test: Added check for error message frommdejong2009-09-211-1/+13
| | | | | unbalanced [] in regexp. Added additional simple test cases of basic regsub command.
* * generic/tclCompile.c: Re-implement Tcl_SubstObj() as a simpledgp2009-09-172-25/+14
| | | | | | | | | | * generic/tclParse.c: wrapper around TclNRSubstObj(). This has * tests/basic.test: the effect of caching compiled bytecode in * tests/parse.test: the value to be substituted. Note that Tcl_SubstObj() now exists only for extensions. Tcl itself no longer makes any use of it. Note also that TclSubstTokens() is now reachable only by Tcl_EvalEx() and Tcl_ParseVar() so tests aiming to test its functioning needed adjustment to still have the intended effect.
* * generic/tclBasic.c: Completed the NR-enabling of [subst].dgp2009-09-112-4/+4
| | | | | | | | | * generic/tclCmdMZ.c: [Bug 2314561]. * generic/tclCompCmds.c: * generic/tclCompile.c: * generic/tclInt.h: * tests/coroutine.test: * tests/parse.test:
* Clean up http tokens properly.dkf2009-09-111-107/+162
|
* * generic/tclParse.c Corrected line counting error in multi-commanddgp2009-09-071-1/+6
| | | | * tests/into.test: script substitutions. [Bug 2850901].
* Added another test case, "known bug" because of [Bug 2314561] incompletenessdkf2009-09-071-4/+8
|
* Basic test of yielding inside a substdkf2009-09-071-38/+10
|
* * generic/tclCompCmds.c (TclCompileSubstCmd): Added a bytecodedgp2009-09-043-10/+125
| | | | | | | | | | | | | * 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.
* regression testsdgp2009-08-211-1/+29
|
* another testdgp2009-08-191-1/+11
|
* test for 2806250dgp2009-08-181-1/+11
|
* nicer test failure modedgp2009-08-181-2/+2
|
* * generic/tclPathObj.c: Added NULL check to prevent crashes duringdgp2009-08-181-1/+33
| | | | * tests/fileName.test: [glob]. [Bug 2837800]
* TIP #353 IMPLEMENTATIONdgp2009-08-121-1/+8
| | | | | | | | | | | | | | * doc/NRE.3: New public routine Tcl_NRExprObj() permits * generic/tcl.decls: extension commands to evaluate Tcl expressions * generic/tclBasic.c: in NR-enabled command procedures. * generic/tclCmdAH.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclObj.c: * tests/expr.test: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* * doc/refchan.n [Bug 2827000]: Extended the implementation ofandreas_kupries2009-08-061-1/+73
| | | | | | | | * generic/tclIORChan.c: reflective channels (TIP 219, method * tests/ioCmd.test: 'read'), enabling handlers to signal EAGAIN to indicate 'no data, but not at EOF either', and other system errors. Updated documentation, extended testsuite (New test cases iocmd*-23.{9,10}).
* * tests/coroutine.test: fix testfile cleanupMiguel Sofer2009-08-021-8/+6
|
* * generic/tclStringObj.c: Corrected failure to grow bufferdgp2009-07-311-1/+5
| | | | | * tests/format.test: when format spec request large width floating point values. Thanks to Clemens Misch. [Bug 2830354]
* Correct "incidental" test failure; exact error message generated bydkf2009-07-251-55/+33
| | | | ::tcl::HistAdd changed
* Make [history] (well, [::tcl::history]) be a real ensemble.dkf2009-07-251-9/+9
|
* * generic/tclInt.h (TclNRSwitchObjCmd):Kevin B Kenny2009-07-141-1/+17
| | | | | | | * generic/tclBasic.c (builtInCmds): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): * tests/switch.test (switch-15.1): Make non-bytecoded [switch] command aware of NRE. [Bug 2821401]
* * 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].
* ZlibTransformClose may be called with a NULL interpreter during finalization andpatthoyts2009-07-101-36/+168
| | | | | Tcl_SetChannelError requires a list. Added some tests to ensure error propagation from the zlib library to the interp.
* [Bug #2818131] Added tests and fixed a typo that broke zlib push for deflate ↵patthoyts2009-07-091-6/+94
| | | | format.
* Additional tests for zlib stacked channel with fcopy in various modes.patthoyts2009-07-051-1/+120
|