summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
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]
* Whitespace policing, replacing commas in varargs with constant string ↵Kevin B Kenny2007-04-201-5/+1
| | | | 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.
* 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.
* New US DST rules on Windows; Olson's tzdata2007cKevin B Kenny2007-03-071-6/+6
|
* * library/clock.tcl (format, scan): corrected wrong # argsMiguel Sofer2006-10-231-3/+3
| | | | | | | | | | | | | | | | | * tests/clock.test (3.1, 34.1): messages to make use of the new rewrite capabilities of [info level] * generic/tcl.h: Lets TEOV update the iPtr->objc/objv * generic/tclBasic.c: fields, except when the (new) flag bit * generic/tclInt.h: TCL_EVAL_NOREWRITE is present. This * generic/tclNamesp.c: causes [info level] to know and use * generic/tclProc.c: ensemble rewrites [Bug 1577492] * tests/namespace.test: ***POTENTIAL INCOMPATIBILITY*** The return value from [info level 0] on interp alias calls is changed: previously returned the target command (including curried values), now returns the source - what was actually called.
* Bug 1567956Kevin B Kenny2006-10-011-3/+4
|
* * library/tzdata: Regenerated, including several new files,Kevin B Kenny2006-08-241-14/+23
| | | | | | | | | from Olson's tzdata2006j. * library/clock.tcl: * tests/clock.test: Removed an early testing hack that allowed loading 'registry' from the build tree rather than an installed one. This is a workaround for [Bug 15232730], which remains open because it's a symptom of a deeper underlying problem.
* Bug 1426279Kevin B Kenny2006-07-311-1/+40
|
* Fixed Bug 1494664Kevin B Kenny2006-07-301-1/+19
|
* Fixed Bug 1505383Kevin B Kenny2006-07-301-1770/+2299
|
* fix for Martin Lemburg's DST conversion bug.Kevin B Kenny2006-04-191-1/+14
| | | | http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/9a8b15a4dfc0b7a0
* * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-3/+3
| | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
* Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-16/+11
| | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* Corrected bug in DST transition times for locales that specify transition in ↵Kevin B Kenny2005-11-281-1/+14
| | | | local Standard Time
* fixed test cases for new US DST rules.Kevin B Kenny2005-10-031-1120/+1122
|
* fixed bad clock test, removed duplicated code in Tcl_FinalizeKevin B Kenny2005-08-171-22/+16
|
* bug 1257830Kevin B Kenny2005-08-121-1/+14
|
* Bug 1237907Kevin B Kenny2005-07-151-1/+55
|
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* fixed Bug 1185933Kevin B Kenny2005-04-191-1/+13
|
* bugs 1090413, 1092789 fixedKevin B Kenny2004-12-291-1/+25
|
* * 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.
* remove knownBugs from clock tests by fixing themKevin B Kenny2004-11-031-9/+15
|
* Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-291-2/+2
| | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage
* * tests/clock.test: Correct duplicate test names.dgp2004-10-281-4/+4
| | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables.
* fixes for Bug 1054101Kevin B Kenny2004-10-261-1/+43
|
* * library/clock.tcl: Fixed a typo where the fallback time zoneKevin B Kenny2004-10-221-1/+23
| | | | | | | | | became ::localtime instead of :localtime. Fixed a bug where time zone names containing hyphens could not be loaded. Thanks to Todd M. Helfter <tmh@jumpgate.itsp.purdue.edu> for finding these bugs. * tests/clock.test: Added regression test cases that covers both bugs.
* * tests/clock.test (clock-34.*): Removed an antibug that forcedKevin B Kenny2004-10-041-9/+9
| | | | | | comparison of [clock scan] results with the :localtime time zone. Now that [clock scan] uses the current time zone instead, the antibug caused several tests to fail. [Bug 1038554]
* * generic/tclClock.c (TclMktimeObjCmd): Corrected a bad checkKevin B Kenny2004-09-111-1/+21
| | | | | | | | | for error return from 'mktime'. * generic/tclObj.c (Tcl_GetIntFromObj): Corrected a problem where demoting a wide to an int failed on a big-endian machine. [Bug 1026125]. * tests/clock.test (clock-43.1): Added regression test for error return from 'mktime'.
* fixed a bug where %z was always positive in :localtimeKevin B Kenny2004-09-101-1/+21
|
* * compat/strftime.c (_conv): Corrected a problem where hour 0Kevin B Kenny2004-09-081-1/+5
| | | | | | would format as a blank format group with %k. * tests/clock.test (clock-41.1): Added regression test case for %k at the zero hour.
* fixed clock-34.* to use same time zone on input and outputKevin B Kenny2004-09-081-9/+9
|
* * generic/tclClock.c (TclClockMktimeObjCmd): Fixed a bug whereKevin B Kenny2004-09-081-1/+22
| | | | | | the month was scanned incorrectly in -timezone :localtime. * tests/clock.test (clock-40.1): Added regression test case for the bug where month was scanned incorrectly in -timezone :localtime.
* * generic/tclTimer.c: Removed a premature optimisation thatKevin B Kenny2004-09-071-7/+22
| | | | | | | | | | | | | | | | | | | | | attempted to store the assoc data in the client data; the optimisation caused a bug that [after] would overwrite its imports. [Bug 1016167] * library/clock.tcl (InitTZData, ClearCaches): Changed so that the in-memory time zone :UTC (and its aliases) always gets reinitialised, in case tzdata is absent. [Bug 1019537, 1023779] * library/tzdata/*: Regenerated. * tests/clock.test (clock-31.*, clock-39.1): Corrected a problem where the 'system' locale tests fail on a non-English Windows machine. [Bug 1023761]. Added a test to make sure that alias time zones load correctly. [Bug 1023779]. * tools/tclZIC.tcl (writeLinks): Corrected a problem where alias time zone names were written incorrectly, causing them to fail to load at run time. [Bug 1023779]. * win/tclWinTime.c (Tcl_GetTime): Eliminated CPUID tests on Win64 - assuming that HAL vendors now do a better job of keeping the performance counters synchronized among CPU's. [Bug 1020445]
* Fixed bug in CET time spec - times change at 0100 Greenwuch, not local.Kevin B Kenny2004-08-211-2/+2
|
* * tests/clock.test (clock-38.1): Changed TZ setting to specifyKevin B Kenny2004-08-211-2/+2
| | | | | | CET in excruciating detail to deal with systems that lack the Posix defaults for DST changes (and to be formally correct with the change dates for CET).
* * library/clock.tcl (format): Changed default timezone format Kevin B Kenny2004-08-191-7/+30
| | | | | | | from alphabetic to numeric to produce scannable times in more locales. * tests/clock.test (clock-37.1): Removed now-unused 'needPST' constraint and the comments that refer to it.
* unbreak Win build after TIP#173 and TIP#209 commitKevin B Kenny2004-08-181-2/+21
|
* TIP #173 and #209 implementation - see ChangeLog for detailsKevin B Kenny2004-08-181-427/+34898
|
* Sanitized another couple of uses of the environment.Kevin B Kenny2004-07-101-15/+19
|
* Added code to restore env(LC_TIME) after the test completes, silencingKevin B Kenny2004-07-101-1/+10
| | | | a warning from 'make TESTFLAGS="-debug 1" test'.
* clock.test: Changed clock-2.11 so that it isn't an infinite loop whenKevin B Kenny2004-07-101-3/+10
| | | | run on a slow virtual machine.
* Standardize some use of test constraints onto names that are documenteddkf2004-06-231-2/+2
|