summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* * tests/clock.test: Commented clock-9.1 that the test will fail Kevin B Kenny2004-05-271-1/+6
| | | | if strftime doesn't do %s.
* * 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]
* Massive test cleanup; all tests are run, and constraints are used where ↵dkf2004-05-191-2/+2
| | | | necessary.
* * compat/strftime.c (_fmt, ISO8601Week): Kevin B Kenny2004-05-181-148/+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/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix minor fault in [clock clicks] error message.dkf2004-04-151-1/+4
|
* * generic/tclGetDate.y (TclGetDate): Fix so that Kevin B Kenny2004-03-101-1/+158
| | | | | | | | | | [clock scan <timeOfDay> -gmt true] uses the GMT base date instead of the local one. [Bug 913513] * tests/clock.test: Added test cases for wrong ISO8601 week number [Bug 500285] and wrong GMT base date [Bug 913513]. Several tests still fail on Windows, and these are actual faults in [clock scan]. Fix is still pending. * generic/tclDate.c: Regenerated.
* Implemented TIP #124 (clock clicks -microseconds and Tcl_WideInt Kevin B Kenny2003-04-121-33/+74
| | | | | | return values). Fixed Bug 710310 (duplicate test numbers in clock.test). Made major changes to tclWinTime.c and related code to improve loop filter stability.
* * generic/tclClock.c: Fixed a bug that incorrectly allowed Kevin B Kenny2003-02-011-1/+7
| | | | | | | | [clock clicks {}] and [clock clicks -] to be accepted as if they were [clock clicks -milliseconds]. * tests/clock.test: Added regression tests for the above bug. [Bug 675356]
* * generic/tclClock.c (FormatClock): Convert the format string tormax2002-07-051-1/+9
| | | | | | UTF8 before calling TclpStrftime, so that non-ASCII characters don't get mangled when the result string is being converted back. * tests/clock.test: Added a test for that.
* * unix/tclUnixTime.c: Make [clock format] respect locale settings.rmax2002-06-261-1/+3
| | | | * tests/clock.test: Bug #565880. ***POTENTIAL INCOMPATIBILITY***
* better qualified 9.1 constraint check for %shobbs2002-05-291-4/+7
|
* * tests/clock.test: added clock-9.1hobbs2002-05-291-1/+14
| | | | | | | | | | | | * compat/strftime.c: * generic/tclClock.c: * generic/tclInt.decls: * generic/tclIntDecls.h: * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using an env(TZ) setting trick for in clock format -gmt 1. This also makes %s seem to work correctly with -gmt 1 as well as making it a lot faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an arg. [Bug #559376]
* * tests/clock.test (clock-8.1):hobbs2001-10-181-2/+11
| | | | | | | * generic/tclDate.c (RelativeMonth): * generic/tclGetDate.y (RelativeMonth): corrected off-by-one-day error in clock scan with relative months and years during swing hours. [Bug #413397, Patch #414024] (lavana)
* * tests/clock.test (clock-2.5): Adjust test so that it passesmdejong2001-07-031-3/+3
| | | | when the time slice is 60 msecs, now passes under Windows 98.
* tests/clock.test: corrected clock-2.* test numberinghobbs2000-10-311-3/+3
|
* * tests/clock.test: Added test for "2 days 2 hours ago" styleericm2000-05-181-1/+6
| | | | | | | | | | specifications. * generic/tclDate.c: Regenerated from tclGetDate.y. * generic/tclGetDate.y: Tweaked grammar to properly handle the "ago" keyword when it follows multiple relative unit specifiers, as in "2 days 2 hours ago". [Bug: 5497].
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/clock.test: Modified some tests that were not robust withericm2000-03-211-11/+14
| | | | | | | | | respect to the time zone in which they were run and were thus failing. * doc/clock.n: Clarified meaning of -gmt with respect to -base when used with [clock scan] (-gmt does not affect the interpretation of -base).
* * tests/clock.test: Added test for ISO bases < 100000ericm2000-02-281-1/+5
| | | | | | | * generic/tclDate.c: (generated on Solaris) * generic/tclGetDate.y: Changed condition for deciding if a number is an ISO 8601 base from number >= 100000 to numberOfDigits >= 6. Previously it would fail to recognize 000000 as an ISO base.
* * tests/clock.test: Added tests for "next monthname" constructs.ericm2000-02-091-12/+14
| | | | | | | * generic/tclDate.c: * generic/tclGetDate.y (Message): Added a grammar rule for "next monthname" so that we can handle "next january" and similar constructs (bug #4146).