summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
Commit message (Collapse)AuthorAgeFilesLines
* [f0f876c141] Improve consistency in error messages.dkf2014-06-171-6/+6
|
* [d19a30db57] More testing.dgp2014-04-161-0/+4
|\
| * Repair new test so all parts will be effective.dgp2014-04-161-0/+3
| |
| * Test for [d19a30db57] extendedsebres2014-04-161-0/+1
| |
* | [d19a30db57] Fixed segfault in [clock] internals. Includes test.dgp2014-04-161-0/+5
|\ \ | |/
| * Test for [d19a30db57].dgp2014-04-161-0/+5
| |
* | [Bug 3549770] Multiple test failures running tcltest outside build treejan.nijtmans2012-07-281-4/+2
|\ \ | |/
| * Bug [3549770]: Multiple test failures running tcltest outside build treejan.nijtmans2012-07-281-4/+2
| |
| * [Bug 3549770] Multiple test failures running tcltest outside build treejan.nijtmans2012-07-281-2/+2
| |
* | Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-0/+148
|\ \ | |/ | | | | another [Bug 3470928]
| * Fix loading of timezones where one abbreviation is a proper suffix of ↵Kevin B Kenny2012-01-081-0/+148
| | | | | | | | another [Bug 3470928]
| * Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-0/+33
| |
* | Don't cache the system timezone when it was derived from TCL_TZ or TZ.max2011-10-181-0/+33
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * Bug 1513489Kevin B Kenny2006-07-301-24/+30
| | |
| | * * 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.
| | * * tests/clock.test: Commented clock-9.1 that the test will fail Kevin B Kenny2004-05-271-2/+8
| | | | | | | | | | | | if strftime doesn't do %s. Modernized the use of test constraints.
| | * * tests/clock.test: Added a single test for the presence of %G Kevin B Kenny2004-05-271-50/+57
| | | | | | | | | | | | | | | | | | in [clock format], and conditioned out the clock-10.x series if they're all going to fail because of a broken strftime() call. [Bug 961714]
| | * * compat/strftime.c (_fmt, ISO8601Week): Kevin B Kenny2004-05-181-1/+149
| | | | | | | | | | | | | | | | | | | | | * doc/clock.n: * tests/clock.test: Major rework to the handling of ISO8601 week numbers. Now passes all the %G and %V test cases on Windows, Linux and Solaris [Bugs #500285, #500389, and #852944]
| | * 2004-05-14 Kevin B. Kenny <kennykb@acm.org> Kevin B Kenny2004-05-141-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime * generic/tclIntDecls.h: from Unix-specific stubs to the generic * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs' * generic/tclStubInit.c: * unix/tclUnixPort.h: * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to the correct 'GMT0'. [Bug #922848] * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to unix/tclUnixTime.c where they belong. * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone, ThreadSafeGMTime [removed], ThreadSafeLocalTime [removed], SetTZIfNecessary, CleanupMemory): Restructured to make sure that the same mutex protects all calls to localtime, gmtime, and tzset. Added a check in front of those calls to make sure that the TZ env var hasn't changed since the last call to tzset, and repeat tzset if necessary. [Bug #942078] Removed a buggy test of the Daylight Saving Time information in 'gettimeofday' in favor of applying 'localtime' to a known value. [Bug #922848] * tests/clock.test (clock-3.14): Added test to make sure that changes to $env(TZ) take effect immediately. * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer for 'localtime' and 'gmtime' calls.
| | * Fixed Bug 710310 (duplicate test numbers in clock.test). Made major Kevin B Kenny2003-04-121-30/+30
| | | | | | | | | | | | | | | changes to tclWinTime.c and related code to improve loop filter stability.
| * | * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-1/+5
| | | | | | | | | | | | | | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
| * | * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
| * | * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
| * | * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
| * | * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-1/+10
| | | | | | | | | | | | | | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
| * | Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-1/+23
| | | | | | | | | | | | between 0 and -12 [Bug 2207436].
| * | * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-1/+14
| | | | | | | | | | | | | | | | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
| * | 2006-06-17 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2008-06-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclClock.c (ConvertLocalToUTC): * tests/clock.test (clock-63.1): Fixed a bug where the internal ConvertLocalToUTC command segfaulted if passed a dictionary without the 'localSeconds' key. To the best of my knowledge, the bug was not observable in the [clock] command itself.
| * | * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):Kevin B Kenny2008-04-141-1/+9
| | | | | | | | | | | | | | | Added comments to the test that it can fail on a heavily loaded system.
* | | * library/clock.tcl (LocalizeFormat):Kevin B Kenny2009-10-291-1/+5
| | | | | | | | | | | | | | | | | | * tests/clock.test (clock-67.1): Corrected a problem where '%%' followed by a letter in a format group could expand recursively: %%R would turn into %%H:%M:%S. [Bug 2819334]
* | | * library/clock.tcl (ParseClockScanFormat):Kevin B Kenny2009-10-271-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | Corrected a problem where [clock scan] didn't load the timezone soon enough when processing a time format that lacked a complete date. [Bug 2886852] * tests/clock.test (clock-66.1): Added a test case for the above bug.
* | | * library/clock.tcl (ProcessPosixTimeZone):Kevin B Kenny2009-10-241-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected a regression in the fix to [Bug 2207436] that caused [clock] to apply EU daylight saving time rules in the US. Thanks to Karl Lehenbauer for reporting this regression. * tests/clock.test (clock-52.4): Added a regression test for the above bug. * library/tzdata/Asia/Dhaka: * library/tzdata/Asia/Karachi: New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
* | | * generic/tclGetDate.y: Fixed a thread safety bug in the generatedKevin B Kenny2009-06-091-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/clock.tcl: Bison parser (needed a %pure-parser * tests/clock.test: declaration to avoid static variables). Discovered that the %pure-parser declaration allowed for returning the Bison error message to the Tcl caller in the event of a syntax error, so did so. * generic/tclDate.c: bison 2.3
* | | make test case work, correct date of commit in ChangeLogKevin B Kenny2009-01-031-2/+3
| | |
* | | * library/clock.tcl (tcl::clock::add): Fixed error message formattingKevin B Kenny2009-01-031-1/+9
| | | | | | | | | | | | | | | | | | in the case where [clock add] is presented with a bad switch. * tests/clock.test (clock-65.1) Added a test case for the above problem [Bug 2481670].
* | | Fallback to European time zone DST rules, when the timezone isnijtmans2008-12-111-1/+23
| | | | | | | | | | | | between 0 and -12 [Bug 2207436].
* | | * library/clock.tcl (format, ParseClockScanFormat): Added aKevin B Kenny2008-11-301-1/+14
| | | | | | | | | | | | | | | | | | | | | [string map] to get rid of namespace delimiters before caching a scan or format procedure [Bug 2362156]. * tests/clock.test (clock-64.[12]): Added test cases for the bug that was tickled by a namespace delimiter inside a format string.
* | | fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-4/+4
| | |
* | | 2006-06-17 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2008-06-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclClock.c (ConvertLocalToUTC): * tests/clock.test (clock-63.1): Fixed a bug where the internal ConvertLocalToUTC command segfaulted if passed a dictionary without the 'localSeconds' key. To the best of my knowledge, the bug was not observable in the [clock] command itself.
* | | * tests/clock.test (clock-33.5, clock-33.5a, clock-33.8, clock-33.8a):Kevin B Kenny2008-04-141-1/+9
|/ / | | | | | | | | Added comments to the test that it can fail on a heavily loaded system.
* | * doc/clock.n: Corrected minor indentation gaffe in theKevin B Kenny2008-02-271-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | penultimate paragraph. [Bug 1898025] * generic/tclClock.c (ParseClockFormatArgs): Changed to check that the clock value is in the range of a 64-bit integer. [Bug 1862555] * library/clock.tcl (::tcl::clock::format, ::tcl::clock::scan, ::tcl::clock::add, ::tcl::clock::LocalizeFormat): Fixed bugs in caching of localized strings that caused weird results when localized date/time formats were used. [Bug 1902423] * tests/clock.test (clock-61.*, clock-62.1): Regression tests for [Bug 1862555] and [Bug 1902423].
* | * generic/tclClock.c (ClockParseformatargsObjCmd):Kevin B Kenny2008-02-061-3/+7
| | | | | | | | | | | | | | | | | | | | * library/clock.tcl (::tcl::clock::format): * tests/clock.test (clock-1.0, clock-1.4): Performance enhancements in [clock format] (moving the analysis of $args into C code, holding on to Tcl_Objs with resolved command names, [lassign] in place of [foreach], avoiding [namespace which] for command resolution).
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * 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].