summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
Commit message (Collapse)AuthorAgeFilesLines
* Add "{}" around many "expr" commands in testcases. Also in doc/expr.njan.nijtmans2020-10-301-3/+3
|
* Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+2
| | | | tcltest 2.5, since we never test with earlier tcltest versions
* Fix 4 test-cases, which fail when running from the western hemispherejan.nijtmans2020-07-111-4/+4
|
* Fix test-cases clock-34.65 and clock-34.66, they seem to be affected by ↵jan.nijtmans2020-07-101-4/+4
| | | | summertime
* Proposed fix for [5019748c73]: FreeScan resp. Oldscan does not recognize ↵jan.nijtmans2020-07-091-37/+64
| | | | positive time zone offset like "31 Jan 14 23:59:59 +0100"
* clock-iso-2.patchjan.nijtmans2020-05-271-0/+16
|
* Proposed soution for [a1bd37b719]: clock (free)scan of ISO 8601 timestamp ↵jan.nijtmans2020-05-271-2/+10
| | | | | with literal T behaves strange (I like it!)
* merge 8.5sebres2020-05-131-0/+18
|\
| * clock.test: more tests for negative month offsets over threshold of a year ↵sebres2020-05-131-0/+18
| | | | | | | | (important for C-implementation like clock-speedup branch, see https://github.com/sebres/tclclockmod/issues/20#issuecomment-627704993)
* | merge 8.5 (timing issue avoidance, skip test in runtime feature)sebres2019-12-091-41/+54
|\ \ | |/
| * rewrite of [dff608952b]: skip tests if there is really a timing issue (and ↵sebres2019-12-061-17/+36
| | | | | | | | implements new feature ::tcltest::Skip which allows conditionally skipping of tests at runtime)
| * Exclude some test-cases with possible timing problems on Windows. Double ;; ↵jan.nijtmans2019-12-061-4/+5
| | | | | | | | in generic/tclTimer.c
| * (cherry-pick from8.6): Japanese Reiwa (令和) erajan.nijtmans2019-05-071-10/+12
| |
* | Japanese Reiwa (令和) eraKevin B Kenny2019-05-041-10/+12
| |
* | clock.test: resolve sporadic timing issues - "after 10" could cause pause ↵sebres2018-12-291-26/+30
| | | | | | | | >120ms on some platforms (especially on heavily loaded systems), so used average value of 5 measured intervals and real retrieved time as reference point
* | Tracking down test failuresdkf2018-11-101-19/+23
| |
* | Historical change affecting tests: Detroit did not observe Daylight Saving ↵Kevin B Kenny2017-10-241-24/+3
|\ \ | |/ | | | | Time in 1967
| * Historical change affecting tests: Detroit did not observe Daylight Saving ↵Kevin B Kenny2017-10-241-24/+3
| | | | | | | | Time in 1967
* | Tcl_GetWideIntFromObj() -> TclGetWideIntFromObj(), and minor other ↵jan.nijtmans2017-06-071-40/+40
| | | | | | | | simplifications/optimizations. No functional change.
* | Fix clock test-cases: Make test clock-67.5 time zone independent - execution ↵sebres2017-01-091-2/+2
| | | | | | | | fails in the time zones below gmt
* | Make test clock-67.4 time zone independent. Bug [4a0c163d24]oehhar2015-10-231-3/+3
| |
* | Change "clock scan/format -format %x -locale current" output on msgcat ↵oehhar2015-10-231-0/+26
|\ \ | | | | | | | | | locale change. Bug [4a0c163d24]
| * | New test for clock scan, test numbering correctedoehhar2015-10-231-6/+19
| | |
| * | Change "clock format -format %x -locale current" output on msgcat locale ↵oehhar2015-10-211-0/+13
|/ / | | | | | | change [4a0c163d24]
* | [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.)