summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* Rename new test to avoid duplicate test name.andreas_kupries2008-07-231-2/+2
|
* * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-1/+27
| | | | | | | | | | * 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.
* * tests/encoding.test: Make failing tests pass again. [Bug 1972867]dgp2008-07-221-1/+3
|
* Add test suite changes for 1999119 bug fix commit.dgp2008-06-251-10/+10
|
* * generic/tclInterp.c: Fixed completely boneheaded mistake thatdgp2008-06-204-9/+32
| | | | | | | | | * tests/interp.test: [interp bgerror $slave] and [$slave bgerror] would always act like [interp bgerror {}]. [Bug 1999035]. * tests/chanio.test: Corrected flawed tests revealed by a -debug 1 * tests/event.test: -singleproc 1 test suite run. * tests/io.test:
* 2006-06-17 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2008-06-171-1/+9
| | | | | | | | | * generic/tclClock.c (ConvertLocalToUTC): * tests/clock.test (clock-63.1): Fixed a bug where the internal ConvertLocalToUTC command segfaulted if passed a dictionary without the 'localSeconds' key. To the best of my knowledge, the bug was not observable in the [clock] command itself.
* * generic/tclCmdIL.c (TclInfoFrame): Backport of fix made on theandreas_kupries2008-06-161-8/+8
| | | | | | | | | * 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].
* (io-53.9): need to close chan before removing filehobbs2008-05-261-1/+2
|
* * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-232-12/+12
| | | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
* * generic/tclParse.c (ParseComment): The new TclParseAllWhiteSpace()dgp2008-05-211-1/+5
| | | | | | | * tests/parse.test (parse-15.60): routine has no mechanism to return the "incomplete" status of "\\\n" so calling this routine anywhere that can be reached within a Tcl_ParseCommand() call is a mistake. In particular, ParseComment() must not use it. [Bug 1968882].
* Backport of fixes to Tcl_SetNamespaceUnknownHandlerdkf2008-05-211-1/+10
|
* Fix off-by-one error that caused crashes. Backport from HEAD.dkf2008-05-071-1/+4
|
* * tests/ioCmd.test: Extended testsuite for reflected channelandreas_kupries2008-04-241-1/+178
| | | | | | | | | | implementation. Added test cases about how it handles if the rug is pulled out from under a channel (= killing threads, interpreters containing the tcl command for a channel, and channel sitting in a different interpreter/thread.) * generic/tclIORChan.c: Fixed the bugs exposed by the new testcases, redone most of the cleanup and exit handling.
* * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-152-2/+82
| | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, * chanio.test (chan-io-53.8a): to shift EOF handling to the async part of the command if a callback is specified, should the channel be at EOF already when fcopy is called. Testcase by myself.
* * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):Kevin B Kenny2008-04-141-1/+9
| | | | | Added comments to the test that it can fail on a heavily loaded system.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-103-13/+75
| | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
* * tests/chanio.test (chan-io-52.5): Removed '-size -1' from test,andreas_kupries2008-04-092-4/+4
| | | | | * tests/io.test (io-52.5): does not seem to have any bearing, and was an illegal value.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -sizeandreas_kupries2008-04-091-1/+7
| | | | | | | | * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic patch by Alexandre Ferrieux <ferrieux@users.sourceforge.net>, with modifications from me to separate overflow from true negative value. Extended testsuite.
* * tests/io.test (io-53.8): Fixed ordering of vwait and afterandreas_kupries2008-04-081-2/+2
| | | | cancel. cancel has to be done after the vwait completes.
* * tests/chanio.test (chan-io-53.8,53.9,53.10): fix typo & quoting fordas2008-04-082-8/+8
| | | | * tests/io.test (io-53.8,53.9,53.10): spaces in builddir path
* Corrected test name.andreas_kupries2008-04-071-2/+2
|