summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed buffer overrun reported in 530320; luckily it is not likely todkf2002-03-151-1/+8
| | | | | be exploitable in any meaningful way, but crashing Tcl instead of triggering an error still isn't good.
* * Added the [interp recursionlimit] command todgp2002-03-071-23/+522
| | | | | set/query the recursion limit of an interpreter. Proposal and implementation from Stephen Trier. [TIP 87, Patch 522849]
* TIP#81 implementation, tests and docsdkf2002-03-061-16/+84
|
* * tests/io.test:hobbs2002-03-042-7/+49
| | | | | | | | | * tests/encoding.test: corrected iso2022 encoding results. added encoding-24.* * generic/tclEncoding.c (EscapeFromUtfProc): corrected output of escape codes as per RFC 1468. [Patch #474358] (taguchi) (TclFinalizeEncodingSubsystem): corrected potential double-free when encodings were finalized on exit. [Bug #219314, #524674]
* corrected iso2022 return encoding escapehobbs2002-03-021-2/+2
|
* * tests/encoding.test: added encoding-23.* testshobbs2002-03-021-19/+73
| | | | | | | * generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START flags in the ChannelState when using 'gets'. [Bug #523988] Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this seems to improve the performance of 'gets' according to tclbench.
* couple extra testshobbs2002-03-011-1/+11
|
* * tests/socket.test (2.7): Accepted and applied patch for Tcl SFandreas_kupries2002-02-271-3/+3
| | | | | bug #523470 provided by Don Porter <dgp@users.sourceforge.net> to avoid timing problems in that test.
* avoiding a buffer overrun in [subst]; restoring tcl7.6 behaviour [Bug #495207]Miguel Sofer2002-02-251-1/+13
|
* * tests/regexpComp.test: updated regexp-11.[1-4] to match changeshobbs2002-02-221-7/+7
| | | | in regexp.test for new regsub syntax
* updated safe-8.5 and safe-8.7hobbs2002-02-221-3/+7
|
* Added TIP#76 implementation, docs + tests.dkf2002-02-221-8/+20
|
* Further changes to the TIP 72 patch to make it compile under VC++Kevin B Kenny2002-02-151-2/+2
|
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-1511-179/+354
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* Added Tcl_CreateObjTrace, Tcl_GetCommandInfoFromToken andKevin B Kenny2002-02-101-1/+32
| | | | Tcl_SetCommandInfoFromToken. (TIPs #32 and #79.)
* * tests/scan.test:hobbs2002-02-071-2/+13
| | | | | | * generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x handling that didn't accept the 0x as a prelude to a base 16 number. [Bug #495213]
* extra code coverage caseshobbs2002-02-072-11/+37
|
* added 10.18 and 10.19 extra testshobbs2002-02-071-1/+7
|
* * tests/io.test: io-39.22 split into two tests, one platformandreas_kupries2002-02-011-4/+18
| | | | | dependent, the other not. -eofchar is not empty on the windows platform.
* * tests/regexpComp.test:hobbs2002-01-301-1/+21
| | | | | * generic/tclCompCmds.c (TclCompileRegexpCmd): enhanced to support -nocase and -- options.
* updated error-1.3 result that changed with string bc correctionhobbs2002-01-291-5/+3
|
* * tests/regexpComp.test (new):hobbs2002-01-291-0/+760
| | | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: added TclCompileRegexpCmd entry * generic/tclCompCmds.c (TclCompileStringCmd): corrected to return TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so it only throws the error for runtime compile, in case the user modifies 'string'. (TclCompileRegexpCmd): first try at a byte-compiled regexp command. It handles static strings and ^$ bounded static strings. (TclCompileAppendCmd): made TclPushVarName call always use TCL_CREATE_VAR as numWords is always > 2 at that point.
* * generic/tclInt.decls:das2002-01-272-16/+18
| | | | | | | | | | | | | | | * generic/tclIntPlatDecls.h: * mac/tclMacChan.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacLoad.c: * mac/tclMacResource.c: * mac/tclMacSock.c: TIP 27 CONSTification induced changes * tests/event.test: * tests/main.test: added catches/constraints to test that use features that don't exist on the mac.
* Make -eofchar and -translation options read only formdejong2002-01-252-3/+34
| | | | | | | | | | | | | | | server sockets. [Bug 496733] * generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption): Instead of returning nothing for the -translation option on a server socket, always return "auto". Return the empty string enclosed in quotes for the -eofchar option on a server socket. Fixup -eofchar usage message so that it matches the implementation. * tests/io.test: Add -eofchar tests and -translation tests to ensure options are read only on server sockets. * tests/socket.test: Update tests to account for -eofchar and -translation option changes.
* * generic/tclIO.c (WriteChars): Fix for SF #506297, reported byandreas_kupries2002-01-211-1/+14
| | | | | | | | | | | | | | Martin Forssen <ruric@users.sourceforge.net>. The encoding chosen in the script exposing the bug writes out three intro characters when TCL_ENCODING_START is set, but does not consume any input as TCL_ENCODING_END is cleared. As some output was generated the enclosing loop calls UtfToExternal again, again with START set. Three more characters in the out and still no use of input ... To break this infinite loop we remove TCL_ENCODING_START from the set of flags after the first call (no condition is required, the later calls remove an unset flag, which is a no-op). This causes the subsequent calls to UtfToExternal to consume and convert the actual input.
* More changes for test portability. Using euro symbol.dgp2002-01-091-7/+7
|
* * generic/tclTest.c (MainLoop):dgp2002-01-091-15/+21
| | | | | * tests/main.test (Tcl_Main-1.{3,4,5,6}): Corrected some non-portable tests from the new Tcl_Main changes. Thanks to Kevin Kenny.
* * doc/Tcl_Main.3:dgp2002-01-051-0/+1048
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclMain.c: Substantial rewrite and expanded documentation of Tcl_Main to correct a number of bugs and flaws: * Interactive Tcl_Main can now enter a main loop, exit that loop and continue interactive operations. The loop may even exit in the midst of interactive command typing without loss of the partial command. [Bugs 486453, 474131] * Tcl_Main now gracefully handles deletion of its master interpreter. * Interactive Tcl_Main can now operate with non-blocking stdin * Interactive Tcl_Main can now detect EOF on stdin even in mid-command. [Bug 491341] * Added VFS-aware internal routines for managing the startup script selection. * Tcl variable 'tcl_interactive' is now linked to C variable 'tty' so that one can disable/enable interactive prompts at the script level when there is no startup script. This is meant for use by the test suite. * Consistent use of the Tcl libraries standard channels as returned by Tcl_GetStdChannel(); as opposed to the channels named 'stdin', 'stdout', and 'stderr' in the master interp, which can be different or unavailable. * Tcl_Main now calls Tcl_Exit() if evaluation of [exit] in the master interpreter returns, assuring Tcl_Main does not return. * Documented Tcl_Main's absence from public stub table * Documented that Tcl_Main does not return. * Documented Tcl variables set by Tcl_Main. * All prompts are done from a single procedure, Prompt. * Use of Tcl_Obj-enabled interfaces everywhere. * generic/tclInt.decls (TclGetStartupScriptPath, TclSetStartupScriptPath): New internal VFS-aware routines for managing the startup script of Tcl_Main. * generic/tclIntDecls.h: * generic/tclStubInit.c: make genstubs * generic/tclTest.c (TestsetmainloopCmd,TestexitmainloopCmd, Tcltest_Init,TestinterpdeleteCmd): * tests/main.test (new): Added new file to test suite that thoroughly tests generic/tclMain.c; added some new test commands for testing Tcl_SetMainLoop().
* Added fix for Bug #494348; the [foreach] implementation was doing somedkf2002-01-031-26/+13
| | | | | cacheing that didn't seem to be safe, and which wouldn't gain very much performance either. Removing it fixed the bug.
* Added test from Bug #494348, but solution still far off.dkf2002-01-031-1/+26
|
* Fixed fault with case-insensitive string matching (Bug#233257) and rewrotedkf2002-01-022-53/+61
| | | | some tests to test what they claimed to be testing.
* * Applied #219311 on behalf of Rolf Schroedterandreas_kupries2001-12-172-5/+51
| | | | | <schroedter@users.sourceforge.net> to prevent fcopy on serial ports from flooding the event queue.
* fix background error reporting in the absence of a bgerror proc [Bug 219142].Miguel Sofer2001-12-101-1/+15
|
* restored consistency in refCount accounting by array traces [Bug #4484339]Miguel Sofer2001-12-071-2/+14
|
* More expr syntax error improvementsdkf2001-12-067-316/+316
|
* new algorithm for [array get], safe when there are traces that modify the ↵Miguel Sofer2001-12-051-1/+29
| | | | array [Bug #449893].
* Improved messages produced on getting a syntax error in an expressiondkf2001-12-049-399/+340
|
* Modified test namespace-41.2, added 41.3Miguel Sofer2001-11-291-3/+17
|
* added new test for bug 231259Miguel Sofer2001-11-291-3/+20
|
* Made test cmdAH-24.2 more robust.dkf2001-11-271-15/+17
|
* Tightened up the argument passing for [switch] to promote robuster scripts.dkf2001-11-271-15/+34
|
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-231-7/+10
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435658) see ChangeLog for details
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-2310-18/+37
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435658) see ChangeLog for details
* another fix for test trace-8.8dgp2001-11-211-1/+2
|
* * corrected test trace-8.8 for Bug 219393dgp2001-11-211-2/+2
|
* * tests/compile.test: added a test for bug [Bug 483309]Miguel Sofer2001-11-191-1/+14
|
* win fs fixesvincentdarley2001-11-191-1/+4
|
* Changes due to TIP#68; memory handling in variable traces is now correct!dkf2001-11-191-1/+22
|
* * tests/interp.test:hobbs2001-11-161-1/+12
| | | | | * generic/tclInterp.c (SlaveObjCmd): Corrected argument checking for '$interp alias|aliases|issafe'. [Patch #479560] (thoyts, hobbs)
* Code reordering; execution levels made consistent [Bug 480896].Miguel Sofer2001-11-161-2/+2
|