summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-1/+10
| | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
* Fix [Bug 2431847]dkf2008-12-151-1/+7
|
* * generic/tclIO.c (SetChannelFromAny and related): Modified theandreas_kupries2008-12-111-1/+11
| | | | | | | | * tests/io.test: internal representation of the tclChannelType to contain not only the ChannelState pointer, but also a reference to the interpreter it was made in. Invalidate and recompute the internal representation when it is used in a different interpreter (Like cmdName intrep's). Added testcase. [Bug 2407783].
* Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-1/+23
| | | | between 0 and -12 [Bug 2207436].
* [Bug 1929403] specify the translation mode when counting bytespatthoyts2008-12-111-1/+2
|
* * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-1/+14
| | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
* only create test.dat file on windows, it is never used on unix and creationdas2008-10-231-9/+13
| | | | may fail due to insufficient permissions
* backport more reliable testscore_8_5_5dgp2008-10-141-20/+20
|
* missing constraintdgp2008-10-141-2/+3
|
* * libtommath/bn_mp_sqrt.c (bn_mp_sqrt): Handle the case whereKevin B Kenny2008-10-051-1/+22
| | | | | | | * tests/expr.test (expr-47.13): a number's square root is between n<<DIGIT_BIT and n<<DIGIT_BIT+1. [Bug 2143288] Thanks to Malcolm Boffey (malcolm.boffey@virgin.net) for the patch.
* * generic/tclUtil.c (TclReToGlob): Added missing set of thedgp2008-08-221-9/+9
| | | | | *exactPtr value to really fix [Bug 2065115]. * tests/regexpComp.test: Correct duplicate test names.
* really fix translation to escape glob-sensitive charshobbs2008-08-211-0/+21
|
* * tests/regexp.test, tests/regexpComp.test: correct re2glob ***=hobbs2008-08-212-2/+64
| | | | | * generic/tclUtil.c (TclReToGlob): translation from exact to anywhere-in-string match. [Bug 2065115]
* * generic/tclTest.c (TestconcatobjCmd):Miguel Sofer2008-08-171-1/+6
| | | | | | | | | | * generic/tclUtil.c (Tcl_ConcatObj): * tests/util.test (util-4.7): fix [Bug 1447328]; the original "fix" turned Tcl_ConcatObj() into a hairy monster. This was exposed by [Bug 2055782]. Additionally, Tcl_ConcatObj could corrupt its input under certain conditions! *** NASTY BUG FIXED ***
* * tests/fileName.test: Revise new tests for portability to casedgp2008-08-141-4/+4
| | | | insensitive filesystems.
* * tests/msgcat.test: fix for ::tcl::mac::locale withdas2008-08-141-2/+3
| | | | @modifier (HEAD backport 2008-06-01).
* * tests/fCmd.test (fCmd-6.23): made result matching robust when testdas2008-08-141-2/+2
| | | | workdir and /tmp are not on same FS.
* * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-131-1/+38
| | | | | * tests/fileName.test: option to [glob]. [Bug 1750300] Thanks to Matthias Kraft and George Peter Staplin.
* * generic/tclProc.c (Tcl_ProcObjCmd): Fixed memory leak triggeredandreas_kupries2008-08-111-5/+31
| | | | | | * tests/proc.test: by procbody::test::proc. See [Bug 2043636]. Added a test case demonstrating the leak before the fix. Fixed a few spelling errors in test descriptions as well.
* * generic/tclExecute.c: Stopped faulty double-logging of errors todgp2008-08-041-1/+22
| | | | | | * tests/execute.test: stack trace when a compile epoch bump triggers fallback to direct evaluation of commands in a compiled script. [Bug 2037338]
* * 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: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-252-15/+100
| | | | | | | | | | | | | | of location for uplevel scripts. * 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): Moved the pure-list optimization out of the eval-direct code path to be done always, i.e. even when a compile is requested. This way we do not loose the association between #280 location information and the list elements, if any.
* * tests/info.test: Reordered the tests to have monotonouslyandreas_kupries2008-07-231-151/+151
| | | | increasing numbers.