summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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].
* Added a scheme to allow aux-data to be printed out for debugging. For this ↵dkf2007-03-021-1/+17
| | | | | | to work, immediate operands referring to aux-data must be identified as such in the instruction descriptor table using OPERAND_AUX4 (all are always 4 bytes). Rewrote the compiled [dict update] so that it stores critical non-varying data in an aux-data value instead of a (shimmerable) literal. [Bug 1671001]
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Stop throwing awaydgp2007-03-011-3/+6
| | | | | * tests/foreach.test (foreach-1.14): useful error information when loop variable sets fail.
* Fix [Bug 1671138]dkf2007-03-011-6/+13
|
* Typo, more.andreas_kupries2007-02-221-2/+2
|
* Typo.andreas_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.
* Bug #1479814. Handle extended paths on Windows NT and above.patthoyts2007-02-201-1/+81
|
* * generic/tclNamesp.c: Corrected broken logic in Tcl_DeleteNamespace()dgp2007-02-081-4/+15
| | | | | | * tests/namespace.test: introduced in Patch 1577278 that caused [namespace delete ::] to be effective only at level #0. New test namespace-7.7 should prevent similar error in the future. [Bug 1655305]
* * generic/tclNamesp.c: Corrected broken implementation of thedgp2007-02-061-1/+6
| | | | | * tests/namespace.test: TclMatchIsTrivial optimization on [namespace children $namespace $pattern].
* * macosx/tclMacOSXFCmd.c (TclMacOSXSetFileAttribute): on some versionsdas2007-01-191-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | of Mac OS X, truncate() fails on resource forks, in that case use open() with O_TRUNC instead. * macosx/tclMacOSXNotify.c: accommodate changes to prototypes of OSSpinLock(Un)Lock API. * macosx/Tcl.xcodeproj/project.pbxproj: ensure HOME and USER env vars * macosx/Tcl.xcodeproj/default.pbxuser: are defined when running testsuite from Xcode. * tests/env.test: add extra system env vars that need to be preserved on some Mac OS X versions for testsuite to work. * unix/Makefile.in: move libtommath defines into configure.in to avoid * unix/configure.in: replicating them across multiple buildsystems. * macosx/Tcl.xcodeproj/project.pbxproj: * unix/tcl.m4: ensure CPPFLAGS env var is used when set. [Bug 1586861] (Darwin): add -isysroot and -mmacosx-version-min flags to CPPFLAGS when present in CFLAGS to avoid discrepancies between what headers configure sees during preprocessing tests and compiling tests. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* Small fixes to quell tests that fail on some kinds of Win systemsdkf2007-01-182-84/+112
|
* Detect [Bug 1638414]dkf2007-01-181-23/+6
|
* Fix [lindex] argument ordering. [bug 1631364]dkf2007-01-091-50/+9
|
* * generic/tclEncoding.c (EscapeFromUtfProc):mdejong2006-12-271-1/+61
| | | | | | | | | | | 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 for escape byte overlap issue.
* * tests/macOSXLoad.test (new file): add testing of .bundle loading anddas2006-12-173-6/+46
| | | | | | | | | | | * tests/load.test: unloading on Darwin (in addition to * tests/unload.test: existing tests of .dylib loading). * macosx/Tcl.xcodeproj/project.pbxproj: add building of dltest binaries so that testsuite run from Xcode can use them; fix testsuite run script. * unix/configure.in: add support for building dltest binaries as * unix/dltest/Makefile.in: .bundle (in addition to .dylib) on Darwin. * unix/Makefile.in: add stub lib dependency to dltest target. * unix/configure: autoconf-2.59
* * tests/append.test: fix cleanup failure when all tests are skipped.das2006-12-171-2/+2
|
* * tests/chan.test (chan-16.9): cleanup chan event handler to avoiddas2006-12-171-1/+2
| | | | causing error in event.test when running testsuite with -singleproc 1.
* * tests/info.test: add !singleTestInterp constraint to tests that faildas2006-12-171-16/+16
| | | | when running testsuite with -singleproc 1. [Bug 1605269]
* adjust tcltest.tcl line numbers in info-22.8 & info-23.6 that changed by ↵das2006-12-101-3/+3
| | | | last tcltest.tcl commit.
* * generic/tclBasic.c: Another step down the path of re-usingdgp2006-12-081-5/+5
| | | | | | | | * generic/tclCompExpr.c: TclExecuteByteCode to implement the TIP 174 * generic/tclCompile.h: commands instead of using a mass of code * generic/tclMathOp.c: duplication. Now all operator commands that * tests/mathop.test: demand exactly one operation are implemented via TclSingleOpCmd and a call to TEBC.
* * generic/tclMathOp.c: More revisions to make tests pass.dgp2006-12-081-7/+7
| | | | * tests/mathop.test:
* More tests for bitopsdkf2006-12-081-37/+344
|
* * tests/mathop.test: Commmitted several new tests from Peter Spjuthdgp2006-12-071-4/+735
| | | | | found in [Patch 157837]. Many failures now demonstrate issues to fix in the TIP 174 implementation.
* More #174 bits and piecesdkf2006-12-071-2/+115
|
* Fixed line endings broken by a previous checking that caused test failures ↵patthoyts2006-12-071-717/+717
| | | | on windows.
* * generic/tclCompCmds.c: Revised and consolidated into utilitydgp2006-12-061-3/+3
| | | | | * tests/mathop.c: routines some of routines that compile the new TIP 174 commands. This corrects some known bugs. More to come.
* Improved error reporting in test expr-47.12Kevin B Kenny2006-12-061-8/+18
|
* * generic/tclBasic.c: TIP #291. Define tcl_platform element forandreas_kupries2006-12-052-3/+3
| | | | | | | | | | | | | | | | * doc/tclvars.n: pointerSize. * win/Makefile.in: Added installation instructions for the platform * win/makefile.vc: package. Added the platform package. * win/makefile.bc: * unix/Makefile.in: * tests/platform.test: * tests/safe.test: * library/platform/platform.tcl: * library/platform/shell.tcl: * library/platform/pkgIndex.tcl: