summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-2/+4
| | | | * tests/result.test: that it rejects illegal non-list values.
* * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-181-1/+25
| | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
* * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieuxandreas_kupries2010-03-091-1/+77
| | | | | | * doc/refchan.n: <ferrieux@users.sourceforge.net> for debugging and fixing * tests/ioCmd.test: the problem. It is the write-side equivalent to the bug fixed 2009-08-06.
* Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-1/+19
| | | | and added test cases for it.
* [Bug 2949740]: Do not try to put a NULL pipeline channel into binary mode.dkf2010-02-111-1/+4
|
* * 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.
* 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.
* Fix environment tests under CYGWINnijtmans2010-01-061-3/+3
|
* Various trivial fixes, discovered during CYGWIN porting attempt. All ↵nijtmans2010-01-061-7/+7
| | | | backported from trunk.
* * generic/tclPathObj.c (TclPathPart): Correct inconsistency betweendgp2010-01-051-1/+15
| | | | | | * tests/fileName.test (filename-14.31): the string rep and the intrep of a path value created by [file rootname]. Thanks to Vitaly Magerya for reporting. [Bug 2918610]
* [Bug 2923613]: Make the safer [source] handle a [return] at the end of the filedkf2009-12-301-1/+12
| | | | correctly.
* [Bug 2895741]: Make min() and max() supported in safe interpreters.dkf2009-12-292-28/+50
|
* [Bug 942170]: Detect the st_blocks field of 'struct stat' correctly.dkf2009-12-281-1/+3
|
* Correct failing testdkf2009-12-281-2/+2
|
* [Bug 2891362]: Make time limits work better with the event loop.dkf2009-12-281-1/+13
|
* Upgrade to Safe Base's handling of [glob] to be more permissive with thedkf2009-12-161-1/+36
| | | | | feature set supported, but stricter with path management. It also now has an error pattern more like the standard [glob] command.
* [Bug 1911342]: Rewrite formatting to avoid bogus link from tm.n to list.n indkf2009-12-161-1/+8
| | | | the HTML documentation.
* * library/safe.tcl: Backport of the streamlined safe base fromandreas_kupries2009-12-091-19/+3
| | | | | * tests/safe.test: head to the 8.5 branch (See head changelog entries 2009-11-05, 2009-11-06, 2009-12-03).
* Fix [Bug 2891556] and improve test to detect similar manifestations in the ↵ferrieux2009-11-161-1/+2
| | | | future.
* * tests/io.test: New test io-53.11 to test for [Bug 2895565].dgp2009-11-121-1/+32
|
* Fixed a number of test issues for Vista and Win7.patthoyts2009-11-113-265/+331
| | | | | These test failures are due to the more restrictive permissions on the newer versions of Windows.
* * 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".
* Backported permissions fix for Windows 7 to cleanup test directory.patthoyts2009-11-031-1/+2
|
* Test hygiene for the ::tmp variabledgp2009-10-294-9/+17
|
* * 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]
* * 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.)
* Fix for [Bug 988703, 1565466]Joe Mistachkin2009-10-181-4/+7
|
* [Bug 2874678]: Don't leak bignums in [dict incr]...dkf2009-10-081-13/+23
|
* * 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.
* 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]
* * 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}).
* * 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]
* * 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).
* test name conflictdgp2009-06-131-2/+2
|
* * generic/tclCompile.c: The value stashed in iPtr->compiledProcPtrdgp2009-06-131-1/+14
| | | | | | | | | | | | | * generic/tclProc.c: when compiling a proc survives too long. We * tests/execute.test: only need it there long enough for the right TclInitCompileEnv() call to re-stash it into envPtr->procPtr. Once that is done, the CompileEnv controls. If we let the value of iPtr->compiledProcPtr linger, though, then any other bytecode compile operation that takes place will also have its CompileEnv initialized with it, and that's not correct. The value is meant to control the compile of the proc body only, not other compile tasks that happen along. Thanks to Carlos Tasada for discovering and reporting the problem. [Bug 2802881].
* * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-4/+39
| | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
* * tests/expr.test: Added many tests demonstrating the brokendgp2009-06-011-1/+326
| | | | cases of [Bug 2798543].
* * tests/httpd: Backport new tests for http 2.7.3.dgp2009-04-102-5/+17
| | | | * tests/http.tcl:
* * generic/tclStringObj.c: Added protections from invalid memorydgp2009-03-301-1/+34
| | | | | | | * generic/tclTestObj.c: accesses when we append (some part of) * tests/stringObj.test: a Tcl_Obj to itself. Added the appendself and appendself2 subcommands to the [teststringobj] testing command and added tests to the test suite. [Bug 2603158]
* * generic/tclPathObj.c (TclPathPart): TclPathPart() was computingdgp2009-03-271-1/+14
| | | | | | * tests/fileName.test: the wrong results for both [file dirname] and [file tail] on "path" arguments with the PATHFLAGS != 0 intrep and with an empty string for the "joined-on" part. [Bug 2710920]
* * generic/tclStringObj.c: Test stringObj-6.9 checks thatdgp2009-03-211-1/+7
| | | | | * tests/stringObj.test: Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
* * generic/tclPathObj.c: Fixed mistaken logic in TclFSGetPathType()dgp2009-02-201-1/+7
| | | | | | * tests/fileName.test: that assumed (not "absolute" => "relative"). This is a false assumption on Windows, where "volumerelative" is another possibility. [Bug 2571597].
* Fix [Bug 2006879]dkf2009-01-061-2/+5
|
* Backport fix for [Bug 2006884]dkf2009-01-061-8/+8
|