summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* added lset tests and updated lindex tests for TIPs#22,33,45 by Kennyhobbs2001-11-146-70/+1392
|
* * tests/var.test:dgp2001-11-091-1/+11
| | | | | * generic/tclVar.c: Corrected bug in [global] when dealing with variable names matching :*. [Bug 480176]
* win fs fixesvincentdarley2001-10-291-1/+11
|
* * tests/clock.test (clock-8.1):hobbs2001-10-181-2/+11
| | | | | | | * generic/tclDate.c (RelativeMonth): * generic/tclGetDate.y (RelativeMonth): corrected off-by-one-day error in clock scan with relative months and years during swing hours. [Bug #413397, Patch #414024] (lavana)
* Small modif to tests/compile.test: better constraint handling forMiguel Sofer2001-10-121-24/+21
| | | | tests committed earlier today.
* * tests/ioCmd.test: added catch around file removal, as Windowshobbs2001-10-121-15/+3
| | | | file locking throws errors.
* (socket-7.2): corrected to work on Win2Khobbs2001-10-121-6/+5
|
* added removeFile for outdatahobbs2001-10-121-1/+4
|
* * tests/compile.test: new tests for [Bug 467523]Miguel Sofer2001-10-121-2/+52
|
* * Corrected restore of ::env(LANG).dgp2001-10-101-2/+3
|
* Fixed Bug #465674 reported by me. [lsort -index end-1] now behaves sensibly...dkf2001-09-281-1/+7
|
* removed dependence on socket.test being run from same dir as remote.tcl,dkf2001-09-201-2/+5
| | | | which only now needs to be in the same dir as it. [Bug #219326]
* improved skip reporting of missing commandshobbs2001-09-202-66/+36
|
* simplified error check for winFCmd-7.9hobbs2001-09-201-17/+6
|
* added back deletion of "more" filehobbs2001-09-191-1/+2
|
* tests/winPipe.test: removed obsolete cat16 testshobbs2001-09-191-117/+3
|
* * generic/tclCompCmds.c (TclCompileStringCmd): INST_STR_MATCH -hobbs2001-09-194-28/+92
| | | | | | | | | | | Updated to Int1 instruction type and added special case to use INST_STR_EQ instead when no glob chars are specified in a static string. * tests/{for.test,foreach.test,if.test,while.test}: * generic/tclCompCmds.c (TclCompileForCmd, TclCompileForeachCmd, TclCompileIfCmd, TclCompileWhileCmd): Corrected the overaggressive compiling of loop bodies enclosed in ""s. [Bug #219166] (msofer)
* test case for bug #461322hobbs2001-09-191-1/+10
|
* TclNeedSpace is now UTF8-aware. (Bug #411825 from <arobert3434@users.sf.net>)dkf2001-09-191-13/+11
|
* fixed typo in socket-12.1hobbs2001-09-141-2/+2
|
* * tests/ioCmd.test: Changed the computation of the result forandreas_kupries2001-09-131-4/+21
| | | | | | | | iocmd-8.1[123] so that the tests work for single- and multi-process execution of the testsuite. Depending on the choice of the user stdout is a tty or not and thus reports different channel options. Fixes [460993] reported by Don Porter.
* Patch for [TIP 56], [Bug: 219384] and [Bug: 455151]: deprecate the useMiguel Sofer2001-09-131-1/+5
| | | | of Tcl_EvalTokens, replaced by the new Tcl_EvalTokensStandard.
* * Corrected tests to better isolate tests indgp2001-09-125-5/+10
| | | | one file from influencing tests in other files. [Bug 460591]