summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* * library/clock.tcl (ParseClockScanFormat): Modified code to allowKevin B Kenny2007-08-251-1/+40
| | | | | * tests/clock.test (clock-60.*): case-insensitive matching of time zone and month names. [Bug 1781282]
* * generic/tclExecute.c (TclExecuteByteCode): Added code to handleKevin B Kenny2007-08-251-2/+122
| | | | | | | * tests/expr.test (expr-23.48-53) integer exponentiation that results in 32- and 64-bit integer results, avoiding calls to wide integer exponentiation routines in this common case. [Bug 1767293]
* * generic/tclCompExpr.c: Register literals found in expressionsdgp2007-08-241-1/+24
| | | | | | * tests/compExpr.test: to restore literal sharing. Preserve numeric intreps when literals are created for the first time. Correct memleak in ExecConstantExprTree() and add test for the leak.
* * generic/tclMain.c: Corrected the logic of dropping the lastdgp2007-08-211-1/+30
| | | | | * tests/main.test: newline from an interactively typed command. [Bug 1775878].
* thread-4.4: clear ::errorInfo in the thread as a message is left here from ↵patthoyts2007-08-211-2/+2
| | | | init.tcl on windows due to no tcl_pkgPath.
* Fix [Bug 1773127]dkf2007-08-151-1/+22
|
* * generic/tclBasic.c: Use fully qualified variable names fordgp2007-08-142-4/+5
| | | | | | * tests/thread.test: ::errorInfo and ::errorCode so that string * tests/trace.test: reported to variable traces are fully qualified in agreement with Tcl 8.4 operations.
* * unix/tclLoadDyld.c: use dlfcn API on Mac OS X 10.4 and later; fixdas2007-08-141-1/+11
| | | | | | 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/tclExecute.c: Provide DECACHE/CACHE protection to thedgp2007-08-131-1/+13
| | | | * tests/trace.test: Tcl_LogCommandInfo() call. [Bug 1773040]
* * generic/tclExecute.c (INST_STORE_ARRAY):Miguel Sofer2007-08-091-1/+17
| | | | | * tests/trace.test (trace-2.6): whole array write traces on compiled local variables were not firing [Bug 1770591]
* * generic/tclExecute.c: Corrected improper use of bignum argumentsdgp2007-08-081-1/+5
| | | | * tests/expr.test: to *SHIFT operations. [Bug 1770224].
* * tests/parseExpr.test: Update source file name of expr parser code.dgp2007-08-061-3/+3
| | | | | | | | | * generic/tclCompExpr.c: Added a "mark" field to the OpNode struct, which is used to guide tree traversal. This field costs nothing since alignement requirements used the memory already. Rewrote ConvertTreeToTokens() to use the new field, which permitted consolidation of utility routines CopyTokens() and GenerateTokensForLiteral().
* VarReform [Patch 1750051]Miguel Sofer2007-07-311-2/+2
| | | | *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and tclCompile.h)
* * generic/tclCompExpr.c: More commentary.dgp2007-07-161-1/+92
| | | | | | * tests/parseExpr.test: Several tests of syntax error messages to check that when expression substrings are truncated they leave visible the context relevant to the reported error.
* * generic/tclTrace.c: Corrected broken trace reversal logic indgp2007-06-271-1/+5
| | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/trace.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931].
* * generic/tclBasic.c (TEOvI): Made sure that leaveMiguel Sofer2007-06-211-2/+2
| | | | | | | * generic/tclExecute.c (INST_INVOKE): traces that were created * tests/trace.test (trace-36.2): during execution of an originally untraced command do not fire [Bug 1740962], partial fix.
* * generic/tclCompile.c: reverted TclEvalObjvInternal andMiguel Sofer2007-06-151-28/+47
| | | | | | | | | | | | * generic/tclExecute.c: INST_INVOKE to essentially what they were * generic/tclBasic.c: previous to the commit of 2007-04-03 [Patch 1693802] and the subsequent optimisations, as they break the new trace tests described below. * generic/trace.test: added tests 36 to 38 for dynamic trace creation and addition. These tests expose a change in dynamics due to a recent round of optimisations. The "correct" behaviour is not described in docs nor TIP 62.
* * generic/trace.test: added tests 36.* for dynamic trace creationMiguel Sofer2007-06-151-1/+51
| | | | | | | and addition. These tests expose a change in dynamics due to a recent round of optimisations. The "correct" behaviour is not described in docs nor TIP 62. Currently test 36.2 fails, the opts will be rolled back.
* Convert [info] into an ensemble command.dkf2007-06-123-231/+235
|
* Forgot to fix the relevant testsdkf2007-06-082-8/+8
|
* * generic/tclBasic.c: Added interp flag value ERR_LEGACY_COPY todgp2007-06-051-0/+18
| | | | | | | | * generic/tclInt.h: control the timing with which the global * generic/tclNamesp.c: variables ::errorCode and ::errorInfo get * generic/tclProc.c: updated after an error. This keeps more * generic/tclResult.c: precise compatibility with Tcl 8.4. * tests/result.test (result-6.2): [Bug 1649062]
* Add missing constraintsdgp2007-06-041-3/+3
|
* * generic/tclBasic.c: Removed code that dealt withdgp2007-05-301-2/+2
| | | | | | | | | | | | | | | | * generic/tclCompile.c: TCL_TOKEN_EXPAND_WORD tokens representing * generic/tclCompile.h: expanded literal words. These sections were mostly in place to enable [info frame] to discover line information in expanded literals. Since the parser now generates a token for each post-expansion word referring to the right location in the original script string, [info frame] gets all the data it needs. * generic/tclInt.h: Revised the parser so that it never produces * generic/tclParse.c: TCL_TOKEN_EXPAND_WORD tokens when parsing an * tests/parse.test: expanded literal word; that is, something like {*}{x y z}. Instead, generate the series of TCL_TOKEN_SIMPLE_WORD tokens to represent the words that expansion of the literal string produces. [RFE 1725186]
* * unix/configure: autoconf-2.59 (FC6 fork)dgp2007-05-182-32/+32
| | | | | | | | | | | | | | | | | * win/configure: * README: Bump version number to 8.5a7 * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * generic/tclParse.c: Disable and remove the ALLOW_EXPAND sections * tests/info.test: that continued to support the deprecated * tests/mathop.test: {expand} syntax. Updated the few remaining users of that syntax in the test suite.
* * tests/encoding.test: Modified so that encoding tests happenKevin B Kenny2007-05-042-16/+40
| | | | | | | | | in a private namespace, to avoid polluting the global one. This problem was discovered when running the test suite '-singleproc 1 -skip exec.test' because the 'path' variable in encoding.test conflicted with the one in io.test. * tests/io.test: Made more of the working variables private to the namespace.
* * tests/utf.test (utf-25.1--utf-25.4): Modified tests toKevin B Kenny2007-05-021-33/+67
| | | | | clean up after the 'testobj' extension to avoid spurious reports of memory leaks.
* Test constraints are automatically "and"ed togetherdkf2007-04-201-2/+2
|
* Whitespace policing, replacing commas in varargs with constant string ↵Kevin B Kenny2007-04-202-8/+4
| | | | catenation, and fixed an oversight in the fix for NZA time zones.
* Fixed a buglet in recognizing time zone SIERRAKevin B Kenny2007-04-201-7/+3
|
* * tests/clock.test (clock-59.1): Added a regression test forKevin B Kenny2007-04-201-1/+39
| | | | | | military time zone input conversion. [Bug 1586828]. * generic/tclGetDate.y (MilitaryTable): Fixed an ancient bug where the military NZA time zones had the signs reversed [Bug 1586828].
* * tests/clock.test (clock-40.1, clock-58.1): Corrected aKevin B Kenny2007-04-201-3/+3
| | | | | | test case that depended on ":localtime" being able to handle dates prior to the Posix epoch, [Bug 1618445] Added a test case for the dates of the Japanese emperors. [Bug 1637471]
* * doc/clock.n: Corrected a silly error (transposed 'uppercase'Kevin B Kenny2007-04-201-1/+76
| | | | | | | | | | | | | | | and 'lowercase' in clock.n. [Bug 1656002] Clarified that [clock scan] does not recognize a locale's alternative calendar. * library/clock.tcl: Corrected an error in skipping over the %Ey field on input. * library/msgs/ja.msg: * tools/loadICU.tcl: Corrected several localisation faults in the Japanese locale (most notably, incorrect dates for the Emperors' eras). [Bug 1637471]. Many thanks to SourceForge user 'nyademo' for pointing this out and developing a fix. * generic/tclPathObj.c: Corrected a 'const'ness fault that caused bitter complaints from MSVC.
* * generic/tclCompCmds.c: added a cast to silence a compilerKevin B Kenny2007-04-151-1/+9
| | | | | | | | error on VC2005. * library/clock.tcl: Restored unique-prefix matching of keywords on the [clock] command. [Bug 1690041] * tests/clock.test: Added rudimentary test cases for unique-prefix matching of keywords.
* * tests/string.test: More [string reverse] tests.dgp2007-03-301-1/+28
|
* * generic/tclProc.c (Tcl_ApplyObjCmd):Miguel Sofer2007-03-291-1/+19
| | | | | | * tests/apply.test (9.3): Fixed Tcl_Obj leak on error return; an unneeded ref to lambdaPtr was being set and not released on an error return path.
* 2007-03-20 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2007-03-201-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDate.c: Rebuilt, despite Donal Fellows's comment when committing it that no rebuild was required. * generic/tclGetDate.y: According to Donal Fellows, "Introduce modern formatting standards; no need for rebuild of tclDate.c." * library/tzdata/America/Cambridge_Bay: * library/tzdata/America/Havana: * library/tzdata/America/Inuvik: * library/tzdata/America/Iqaluit: * library/tzdata/America/Pangnirtung: * library/tzdata/America/Rankin_Inlet: * library/tzdata/America/Resolute: * library/tzdata/America/Yellowknife: * library/tzdata/Asia/Choibalsan: * library/tzdata/Asia/Dili: * library/tzdata/Asia/Hovd: * library/tzdata/Asia/Jakarta: * library/tzdata/Asia/Jayapura: * library/tzdata/Asia/Makassar: * library/tzdata/Asia/Pontianak: * library/tzdata/Asia/Ulaanbaatar: * library/tzdata/Europe/Istanbul: Upgraded to Olson's tzdata2007d. * generic/tclListObj.c (TclLsetList, TclLsetFlat): * tests/lset.test: Changes to deal with shared internal representation for lists passed to the [lset] command. Thanks to Don Porter for fixing this issue. [Bug 1677512]
* * 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.
* * tests/parse.test: Add two backslash newline parse tests.mdejong2007-03-151-1/+7
|
* Added test for [Bug 1675044].dgp2007-03-131-1/+18
|
* * generic/tclExecute.c (INST_FOREACH_STEP4): Make private copydgp2007-03-121-1/+13
| | | | | | * tests/foreach.test (foreach-10.1): of value list to be assigned to variables so that shimmering of that list doesn't lead to invalid pointers. [Bug 1671087]
* * generic/tclEvent.c (HandleBgErrors): Make efficient private copydgp2007-03-121-1/+18
| | | | | | * tests/event.test (event-5.3): of the command prefix for the interp's background error handling command to avoid panics due to pointers to memory invalid after shimmering. [Bug 1670155]
* * generic/tclNamesp.c (NsEnsembleImplementationCmd): Make efficientdgp2007-03-121-1/+15
| | | | | | | * tests/namespace.test (namespace-42.8): private copy of the command prefix as we invoke the command appropriate to a particular subcommand of a particular ensemble to avoid panic due to shimmering of the List intrep. [Bug 1670091]
* * generic/tclVar.c (TclArraySet): Make efficient private copy ofdgp2007-03-121-1/+13
| | | | | * tests/var.test (var-17.1): the "list" argument to [array set] to avoid crash due to shimmering invalidating pointers. [Bug 1669489].
* Fix [Bug 1675116]dkf2007-03-091-1/+5
|
* Modified test initialisation to use theKevin B Kenny2007-03-091-2/+8
| | | | | 'loadTestedCommands' function of tcltest to bring in the correct path for the registry library.
* * library/clock.tcl (ReadZoneinfoFile): Added Y2038 compliance toKevin B Kenny2007-03-091-1/+211
| | | | | | the code for version-2 'zoneinfo' files. * tests/clock.test (clock-56.3): Added a test case for Y2038 and 'zoneinfo'.
* * library/clock.tcl: Further tweaks to the Windows time zone tableKevin B Kenny2007-03-081-49/+178
| | | | | | | | | (restoring missing Mexican time zones). Added rudimentary handling of version-2 'zoneinfo' files. Update US DST rules so that zones such as 'EST5EDT' get the correct transition dates. * tests/clock.test: Added rudimentary test cases for 'zoneinfo' parsing. Adjusted several tests that depended on obsolete US DST transition rules.
* Add missing constraintsdgp2007-03-071-2/+2
|
* New US DST rules on Windows; Olson's tzdata2007cKevin B Kenny2007-03-071-6/+6
|
* * generic/tclCmdIL.c (Tcl_LreverseObjCmd): Added missingdgp2007-03-021-1/+4
| | | | | TclInvalidateStringRep() call when we directly manipulate the intrep of an unshared "list" Tcl_Obj. [Bug 1672585].