summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclExecute.c (ExponLong, ExponWide): fixed special caseMiguel Sofer2005-05-101-1/+4
| | | | 'i**0' for i>0 [Bug 1198892]
* * generic/tclCompCmds.c: Replaced all instance ofdgp2005-05-051-2/+2
| | | | | | | | * generic/tclCompile.c: TCL_OUT_LINE_COMPILE with TCL_ERROR. * generic/tclInt.h: Now that we've eradicated the mistaken * tests/appendComp.test: notion of a "compile-time error", we can use the TCL_ERROR return code to signal any failure to produce bytecode.
* * generic/tcl.decls:dgp2005-05-021-1/+8
| | | | | | | * generic/tclBasic.c: Simplified implementation of Tcl_ExprString. * tests/expr-old.test: * generic/tclDecls.h: `make gentstubs`
* TIP#176 IMPLEMENTATION [Patch 1165695]dgp2005-04-2913-76/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclUtil.c: Extended TclGetIntForIndex to recognize index formats including end+integer and integer+/-integer. * generic/tclCmdMZ.c: Extended the -start switch of [regexp] and [regsub] to accept all index formats known by TclGetIntForIndex. * doc/lindex.n: Updated docs to note new index formats. * doc/linsert.n: * doc/lrange.n: * doc/lreplace.n: * doc/lsearch.n: * doc/lset.n: * doc/lsort.n: * doc/regexp.n: * doc/regsub.n: * doc/string.n: * tests/cmdIL.test: Updated tests. * tests/compile.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/lsearch.test: * tests/lset.test: * tests/regexp.test: * tests/regexpComp.test: * tests/string.test: * tests/stringComp.test: * tests/util.test:
* * tests/unixInit.test (7.1): Alternative fix for thedgp2005-04-281-6/+6
| | | | 2004-11-11 commit.
* * library/init.tcl: Corrected flaw in interactive commanddgp2005-04-281-1/+17
| | | | * tests/main.test: auto-completion. [Bug 1191409].
* TIP#183 IMPLEMENTATION [Patch 577093]dgp2005-04-271-2/+36
| | | | | | | | | * generic/tclIOUtil.c (TclGetOpenModeEx): New routine. * generic/tclInt.h: * generic/tclIO.c (Tcl_OpenObjCmd): Support for "b" and * doc/open.n: "BINARY" in "access" argument to [open]. * tests/ioCmd.test:
* typodgp2005-04-221-2/+2
|
* * tests/string.test: Test string-23.0 for Bug 1187123.dgp2005-04-221-1/+8
|
* The 2005-04-21 changes to Tcl_GetBooleanFromObj were done to bringdgp2005-04-221-19/+15
| | | | | | | | | | | | | | | | | | | | | | | | | it into agreement with its docs. Further investigation reveals it was the docs that were incorrect. * doc/BoolObj.3: Corrections to the documentation of Tcl_GetBooleanFromObj to bring it into agreement with what this public interface has always done, including noting the difference in function between Tcl_GetBooleanFromObj and Tcl_GetBoolean. * generic/tclGet.c: Revised Tcl_GetBoolean to no longer be a wrapper around Tcl_GetBooleanFromObj (different function!). * generic/tclObj.c: Removed TclGetTruthValueFromObj routine that was added yesterday. Revisions so that only Tcl_GetBoolean-approved values get the "boolean" Tcl_ObjType. This retains the fix for [Bug 1187123]. * generic/tclInt.h: Revert most recent change. * generic/tclBasic.c: * generic/tclCompCmds.c: * generic/tclDictObj.c: * generic/tclExecute.c: * tests/obj.test:
* * generic/tclGet.c: Radical code simplification. Converteddgp2005-04-211-15/+19
| | | | | | | | | | | | | | | | | | Tcl_GetFoo() routines into wrappers around Tcl_GetFooFromObj(). Reduces code duplication, and the resulting potential for inconsistency. * generic/tclObj.c: Several changes: - Fixed Tcl_GetBooleanFromObj to agree with its documentation and with Tcl_GetBoolean, accepting only "0" and "1" and not other numeric strings. [Bug 1187123] - Added new private routine TclGetTruthValueFromObj to perform the more permissive conversion of numeric values to boolean that is needed by the [expr] machinery. * generic/tclInt.h (TclGetTruthValueFromObj): New routine. * generic/tclExecute.c: Updated callers to call new routine. * tests/obj.test: Corrected bad tests that actually expected values like "47" and "0xac" to be accepted as booleans.
* fixed Bug 1185933Kevin B Kenny2005-04-191-1/+13
|
* * tests/unixInit.test: Disabled obsolete tests and removed codedgp2005-04-152-58/+38
| | | | | * tests/encoding.test: that supported them. * generic/tclInterp.c:
* * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-141-3/+3
| | | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need * tests/iogt.test: for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by the buffersize over reading for the native read() caused by [read].
* * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-141-2/+2
| | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by buffer size over reading for the native read().
* Test updates for new [switch] compilerdkf2005-04-081-17/+63
|
* replace obsolete "winOnly" constraint with preferred "win"dgp2005-04-051-1/+1
|
* * generic/tclBasic.c (Tcl_EvalEx): Restored recursion limitdgp2005-03-182-5/+49
| | | | | | | | * generic/tclParse.c (TclSubstTokens): testing in nested command * tests/basic.test (basic-46.4): substitutions within direct * tests/parse.test (parse-19.*): script evaluation (Tcl_EvalEx) that got lost in the parser reforms of Tcl 8.1. Added tests for correct behavior. [Bug 1115904]
* more tests and a fix to bug 1158199vincentdarley2005-03-151-1/+9
|
* fix to file norm, file pathtype on windows reserved filenamesvincentdarley2005-03-151-1/+50
|
* speed up some testsdgp2005-02-241-7/+7
|
* More robust new test tcltest-9.5dgp2005-02-241-7/+9
|
* * library/tcltest/tcltest.tcl: Better use of [glob -types] to avoiddgp2005-02-241-3/+16
| | | | | | | | | * tests/tcltest.test: failed attempts to [source] a directory, and similar matters. Thanks to "mpettigr". [Bug 1119798] * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.8 * unix/Makefile.in: * win/Makefile.in:
* * tests/basic.test (basic-26.3): new testMiguel Sofer2005-02-111-2/+21
|
* * generic/tclBasic.c (Tcl_EvalObjEx):Miguel Sofer2005-02-101-1/+19
| | | | | | * tests/basic.test (basic-26.2): preserve the arguments passed to TEOV in the pure-list branch, in case the list shimmers away. Fix for [Bug 1119369], reported by Peter MacDonald.
* Added test for [1109484]dkf2005-01-281-2/+6
|
* TIP#218 IMPLEMENTATIONandreas_kupries2005-01-271-1/+7
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c:
* Add another test demonstrating what *should* happen, and xref to FRQdkf2005-01-141-2/+17
| | | | that triggered this discussion
* Document deep magic in compiled [expr]dkf2005-01-141-1/+17
|
* * tests/winDde.test: Fixed broken test result.patthoyts2005-01-051-2/+2
|
* * tests/fCmd.test (fCmd-18.10): Added notNetworkFilesystem constraint.dgp2005-01-041-2/+2
| | | | [Bug 456665]
* bugs 1090413, 1092789 fixedKevin B Kenny2004-12-291-1/+25
|
* Upgrade the capabilities of time limits by allowing them to fire in the midstdkf2004-12-161-2/+23
| | | | of the processing of the event loop or during a blocking [after]. [Bug 1085023]
* * tests/unixInit.test (2.1-4): Added constraints so that when adgp2004-12-081-5/+15
| | | | | value of TCL_LIBRARY is required for process initialization, we skip the tests that mess with that value.
* * tests/msgcat.test: makeFile/removeFile cleanup [1079117]dgp2004-12-061-4/+3
|
* * tests/safe.test: Trim auto_path to improve performance [1080039]dgp2004-12-061-1/+5
|
* filesystem, glob, tilde fixvincentdarley2004-12-021-0/+51
|
* Upgrade more of the file to tcltest2, and collect constraint definitions to ↵dkf2004-12-021-51/+53
| | | | the top.
* Oops! <:^)dkf2004-12-011-2/+2
|
* Fix reported problems with tests for dde error messages. Also use more tcltest2dkf2004-12-011-81/+60
| | | | features to reduce [catch] count...
* Patch 976520 reworks several of the details involved withdgp2004-11-302-27/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup/initialization of the Tcl library, focused on the activities of Tcl_FindExecutable(). * generic/tclIO.c: Removed bogus claim in comment that encoding "iso8859-1" is "built-in" to Tcl. * generic/tclInt.h: Created a new struct ProcessGlobalValue, * generic/tclUtil.c: routines Tcl(Get|Set)ProcessGlobalValue, and function type TclInitProcessGlobalValueProc. Together, these take care of the housekeeping for "values" (things that can be held in a Tcl_Obj) that are global across a whole process. That is, they are shared among multiple threads, and epoch and mutex protection must govern the validity of cached copies maintained in each thread. * generic/tclNotify.c: Modified TclInitNotifier() to tolerate being called multiple times in the same thread. * generic/tclEvent.c: Dropped the unused argv0 argument to TclInitSubsystems(). Removed machinery to unsure only one TclInitNotifier() call per thread, now that that is safe. Converted Tcl(Get|Set)LibraryPath to use a ProcessGlobalValue, and moved them to tclEncoding.c. * generic/tclBasic.c: Updated caller. * generic/tclInt.h: TclpFindExecutable now returns void. * unix/tclUnixFile.c: * win/tclWinFile.c: * win/tclWinPipe.c: * generic/tclEncoding.c: Built new encoding search initialization on a foundation of ProcessGlobalValues, exposing new routines Tcl(Get|Set)EncodingSearchPath. A cache of a map from encoding name to directory pathname keeps track of where encodings are available for loading. Tcl_FindExecutable greatly simplified into just three function calls. The "library path" is now misnamed, as its only remaining purpose is as a foundation for the default encoding search path. * generic/tclInterp.c: Inlined the initScript that is evaluated by Tcl_Init(). Added verification after initScript evaluation that Tcl can find its installed *.enc files, and that it has initialized [encoding system] in agreement with what the environment expects. [tclInit] no longer driven by the value of $::tcl_libPath; it largely constructs its own search path now, rather than attempt to share one with the encoding system. * unix/tclUnixInit.c: TclpSetInitialEncodings factored so that a new * win/tclWinInit.c: routine TclpGetEncodingNameFromEnvironment can reveal that Tcl thinks the [encoding system] should be, even when an incomplete encoding search path, or a missing *.enc file won't allow that initialization to succeed. TclpInitLibraryPath reworked as an initializer of a ProcessGlobalValue. * unix/tclUnixTest.c: Update implementations of [testfindexecutable], [testgetdefenc], and [testsetdefenc]. * tests/unixInit.test: Corrected tests to operate properly even when a value of TCL_LIBRARY is required to find encodings. * generic/tclInt.decls: New internal stubs: TclGetEncodingSearchPath, TclSetEncodingSearchPath, TclpGetEncodingNameFromEnvironment. These are candidates for public exposure by future TIPs. * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclTest.c: Updated [testencoding] to use * tests/encoding.test: Tcl(Get|Set)EncodingSearchPath. Updated tests.
* * library/clock.tcl: Corrected the regular expressions that matchKevin B Kenny2004-11-301-2/+6
| | | | | a time zone to allow for time zones specified as +HH or -HH. * tests/clock.test: Added regression test case for the above issue.
* Fix [Bug 1066837] without reopening other bugs... What a horrid hack! :^/dkf2004-11-251-1/+6
|
* * tests/tcltest.test: The order in which [glob] returns the filermax2004-11-251-3/+3
| | | | names is undefined, so tests should not depend on it.
* * generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in newdgp2004-11-241-1/+9
| | | | * tests/info.test (info-19.6): trivial matching branch [Bug 1072654]
* * generic/tclInterp.c: Restored several directories to the searchdgp2004-11-221-10/+7
| | | | | | | | * tests/unixInit.test: path used to locate init.tcl within [tclInit]. This change does not restore any directories to the encoding search path, so should still avoid the price of an unreasonably large number of filesystem accesses during encoding initialization at startup [Bug 976438]
* fix to windows file join bugvincentdarley2004-11-221-0/+7
|
* * tests/unixInit.test: Removed "knownBug" constraints to promptdgp2004-11-191-9/+9
| | | | bug fixing before 8.5a2 release.
* * tests/interp.test (interp-36.*): [interp bgerror] tests.dgp2004-11-181-1/+36
| | | | * generic/tclInterp.c: Corrected [interp bgerror] error messages.
* * tests/basic.test: Updated functional (not testing) uses ofdgp2004-11-184-48/+98
| | | | | | | | * tests/io.test: [bgerror] to make use of [interp bgerror]. * tests/socket.test: * tests/timer.test: * generic/tclInterp.c: Corrected [interp bgerror] error message.