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]
* * tests/fileName.test: Tests for [Bug 2710920] to guard againstdgp2009-03-271-1/+13
| | | | its appearance.
* * 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/+8
| | | | | | * tests/fileName.test: that assumed (not "absolute" => "relative"). This is a false assumption on Windows, where "volumerelative" is another possibility. [Bug 2571597].
* * tests/fileName.test: Revise new tests for portability to casedgp2008-08-141-4/+4
| | | | insensitive filesystems.
* * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-131-2/+40
| | | | | * 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/tclBasic.c: Added missing release of extended commandandreas_kupries2008-07-281-82/+102
| | | | | | | | | | | | | | | word index when deleting an interpreter (DeleteInterpProc). Added missing ref count when creating an empty string as path (EvalEx). * generic/tclCompile.c (TclInitCompileEnv): Made same change to control flow as in TclEvalObjEx. Not needed while uplevel and siblings go through the eval-direct code path, however if that changes (like it did in 8.5+) better to have this in place instead of re-searching why certain places are without absolute locations. * tests/info.test: Added tests 38.*, exactly testing the tracking of location for uplevel scripts, and made the testsuite fully usable with and without -singleproc 1.
* * tests/info.test: Add !singleTestInterp constraint to various tests;das2008-07-251-27/+27
| | | | | (info-22.8, info-23.0): switch to glob matching to avoid sensitivity to tcltest.tcl line number changes. [Bug 1605269]
* * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-241-1/+86
| | | | of location for uplevel scripts.
* Contrain the new test to run only when tip280 is active.andreas_kupries2008-07-231-2/+2
|
* * generic/tclBasic.c: Modified TclArgumentGet to reject pure listsandreas_kupries2008-07-231-12/+38
| | | | | | | | | | * 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/binary.test: Corrected flawed tests revealed by a -debug 1dgp2008-06-202-10/+4
| | | | * tests/io.test: -singleproc 1 test suite run.
* * generic/tclCmdIL.c (InfoFrameCmd): Backport of fix made on theandreas_kupries2008-06-161-15/+15
| | | | | | | | | * 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].
* reduce reg-33.14 space used to prevent stack segfaulthobbs2008-05-261-2/+2
|
* * tests/io.test (io-53.9): need to close chan before removing file.hobbs2008-05-261-1/+2
|
* * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-6/+6
| | | | | | | | | | | 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> to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
* style revisions to latest commitdgp2008-04-172-10/+7
|
* * generic/tclCompExpr.c (CompileMathFuncCall): Addedandreas_kupries2008-04-171-1/+7
| | | | | | | * tests/compile.test (compile-16.0): Tcl_ResetResult before appending error message, to clear out possible sharing. Added test case demonstrating the crash (abort on shared object) without the fix.
* * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-152-2/+43
| | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, 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.
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-102-10/+38
| | | | | | | | | | | 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 comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
* * tests/io.test (io-52.5): Removed '-size -1' from test, does notandreas_kupries2008-04-091-2/+2
| | | | | | seem to have any bearing, and was an illegal value. Test case is not affected by the value of -size, test flag restoration and that everything was properly copied.
* * 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,53.9,53.10): Backported das' fix of typoandreas_kupries2008-04-081-4/+4
| | | | and quoting for spaces in builddir path.
* * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-071-1/+71
| | | | | | | * generic/tclIO.c: Additional changes to data structures for fcopy * generic/tclIO.h: and channels to perform proper cleanup in case of a channel having two background copy operations running as is now possible.
* * generic/tclIO.c (BUSY_STATE, CheckChannelErrors,andreas_kupries2008-04-071-1/+2
| | | | | | | | | | | TclCopyChannel): New macro, and the places using it. This change allows for bi-directional fcopy on channels. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for the patch. * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. Backported from Kevin Kenny's change to the same test on the 8.5 and head branches.
* * tests/io.test (io-53.9): Added testcase for [Bug 780533], basedandreas_kupries2008-04-041-3/+51
| | | | | on Alexandre's test script. Also fixed problem with timer in preceding test, was not canceled properly in the ok case.
* * generic/tclIO.c (CopyData): Applied patch [Bug 1932639] toandreas_kupries2008-04-031-1/+46
| | | | | | * tests/io.test: prevent fcopy from calling -command synchronously the first time. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for report and patch.
* Backported fix for #1923966patthoyts2008-03-241-1/+19
|
* * generic/tclTest.c: Backport the [testexprlongobj] testing command.dgp2008-03-071-1/+3
|
* * tests/execute.test (execute-6.8): Added tests checking thatdgp2008-03-071-2/+179
| | | | bytecode is invalidates in the right situations.
* Fixes for problems created when processing regular expressions thatdkf2007-12-181-1/+14
| | | | | | | generate very large automata. An enormous number of thanks to Will Drewry <wad@google.com>, Tavis Ormandy <taviso@google.com>, and Tom Lane <tgl@sss.pgh.pa.us> from the Postgresql crowd for their help in tracking these problems down. [Bug 1810264]
* * generic/tclIOUtil.c (TclGetOpenMode): Only set the O_APPEND flaghobbs2007-12-141-1/+22
| | | | | * tests/ioUtil.test (ioUtil-4.1): on a channel for the 'a' mode and not for 'a+'. [Bug 1773127] (backport from HEAD)
* Prevent shimmering crash in [lsearch] when -exact and -integer/-real aredkf2007-12-051-1/+10
| | | | mixed. [Bug 1844789]
* * generic/regc_nfa.c: Fixed infinite loop in the regexp compilerdgp2007-11-151-1/+7
| | | | | | | * generic/regcomp.c: [Bug 1810038]. Corrected looping logic in * tests/regexp.test: fixempties() to avoid wasting time walking a list of dead states [Bug 1832612]. Convert optst() from expensive no-op to a cheap no-op. Improve newline usage in debug output.
* * generic/tclPkg.c: Backport fix for [1573844] to thedgp2007-09-191-11/+11
| | | | * tests/pkg.test: TCL_TIP268 sections.
* * tests/trace.test: Backport some tests.dgp2007-08-141-1/+27
|
* * unix/tclLoadDyld.c: use dlfcn API on Mac OS X 10.4 and later; fixdas2007-08-141-3/+14
| | | | | | issues with loading from memory on intel and 64bit; add debug messages. * tests/load.test: add test load-10.1 for loading from vfs.
* * generic/tclCmdMZ.c: Corrected broken trace reversal logic indgp2007-06-271-1/+5
| | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/basic.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931].
* * tests/result.test (result-6.2): Add test for Bug 1649062 sodgp2007-06-051-0/+16
| | | | that 8.4 and 8.5 both test the same outcome and we verify compatibility.
* * tests/fCmd.test: Backport the notNetworkFilesystem constraint.dgp2007-05-171-6/+7
|
* * win/tclWinReg.c (GetKeyNames): Size the buffer for enumeratingKevin B Kenny2007-03-171-1/+21
| | | | | | | key names correctly, so that Unicode names exceeding 127 chars can be retrieved without crashing. [Bug 1682211] * tests/registry.test (registry-4.9): Added test case for the above bug.
* * generic/tclExecute.c (INST_FOREACH_STEP4): Re-fetch pointers fordgp2007-03-131-1/+13
| | | | | * tests/foreach.test (foreach-10.1): the value list each iteration of the loop as defense against shimmers. [Bug 1671087]
* * generic/tclVar.c (TclArraySet): Re-fetch pointers for the listdgp2007-03-131-1/+13
| | | | | | * tests/var.test (var-17.1): argument of [array set] each time through the loop as defense against possible shimmer issues. [Bug 1669489].
* Fix [Bug 1675116] in a way suitable for 8.4.dkf2007-03-101-1/+6
|
* Fix [Bug 1671138]dkf2007-03-011-1/+11
|
* Typo, more.andreas_kupries2007-02-221-2/+2
|
* Typoandreas_kupries2007-02-221-2/+2
|
* * tests/pkg.test: Added tests for the case of an alpha packageandreas_kupries2007-02-221-1/+17
| | | | | | satisfying a require for the regular package, demonstrating a corner case specified in TIP#280. More notes in the comments to the test.
* * generic/tclEncoding.c (EscapeFromUtfProc): Applied patchandreas_kupries2007-02-121-1/+61
| | | | | | | | | supplied by Mo DeJong to fix [Bug 1516109]. Backport from Tcl 8.5. Mo's description: Clear the TCL_ENCODING_END flag when end bytes are written. This fix keep this method from writing escape bytes for an encoding like iso2022-jp multiple times when the escape byte overlap with the end of the IO buffer. * tests/io.test: Add test case for escape byte overlap case.