summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-173-8/+8
| | | | Improved error-message regarding legacy form.
* * doc/tclvars.n:Kevin B Kenny2011-01-151-1/+1959
| | | | | | | | | | * generic/tclStrToD.c: * generic/tclUtil.c (Tcl_PrintDouble): * tests/util.test (util-16.*): Restored full Tcl 8.4 compatibility for the formatting of floating point numbers when $::tcl_precision is not zero. Added compatibility tests to make sure that excess trailing zeroes are suppressed for all eight major code paths. [Bug 3157475]
* [backport] Make sure [fcopy -size ... -command ...] always calls the ↵ferrieux2010-12-101-1/+39
| | | | callback asynchronously, even for size zero.
* * generic/tclInt.decls: Backport of Kevin B. Kenny's work onandreas_kupries2010-11-302-3/+795
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: the Tcl Head, with help from Jeff Hobbs. * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them. * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h: Regenerated.
* * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-152-39/+157
| | | | | | | | | | * 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:
* * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-1/+31
| | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
* Improved handling of non-standard module path lists, empty path lists in ↵stwo2010-11-021-2/+2
| | | | particular.
* [Bug 3085863]: tclUniData 9 years oldnijtmans2010-10-231-17/+17
| | | | Upgrade everything to Unicode 6.0, except non-BMP characters > 0xFFFF
* * generic/tclExecute.c: [Bug 3057639]. Applied patch by Jeff toandreas_kupries2010-09-012-7/+129
| | | | | | | * generic/tclVar.c: make the behaviour of lappend in bytecompiled * tests/append.test: mode consistent with direct-eval and 'append' * tests/appendComp.test: generally. Added tests (append*-9.*) showing the difference.
* * generic/tclProc.c (ProcWrongNumArgs): [Bug 3045010]: Make thedkf2010-08-151-3/+3
| | | | | handling of passing the wrong number of arguments to [apply] somewhat less verbose when a lambda term is present.
* * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): [Bug 2826551, Patch 2948425]:dkf2010-08-121-18/+246
| | | | Backport of updates to make handling of RE line anchors correct.
* Test iocmd-32.2 tests for Bug 3034840dgp2010-08-031-1/+14
|
* * tests/var.test (var-19.1): [Bug 3037525]: Added testandreas_kupries2010-08-031-1/+8
| | | | demonstrating the local hashtable deletion crash and fix.
* * 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/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Madedkf2010-07-021-15/+19
| | | | | | sure that errors caused by an argument to an operator being outside the domain of the operator all result in ::errorCode being ARITH DOMAIN and not NONE.
* * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrongdkf2010-06-222-2/+2
| | | | args message.
* [Backport] Also check the reverse path of dict->list EIAS violation.ferrieux2010-05-201-1/+2
|
* Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-1/+2
|
* * 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
|