summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-10-03 17:42:31 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-10-03 17:42:31 (GMT)
commit0ee7072e5fb4230554c40aa7eb13a3cf19719b82 (patch)
tree0648c8891385f31c79743e98e0efb5fa811bec42 /tools
parentcc8a018f3a8e1d99de2b471586c26296cdb27501 (diff)
downloadtcl-0ee7072e5fb4230554c40aa7eb13a3cf19719b82.zip
tcl-0ee7072e5fb4230554c40aa7eb13a3cf19719b82.tar.gz
tcl-0ee7072e5fb4230554c40aa7eb13a3cf19719b82.tar.bz2
fixed test cases for new US DST rules.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/makeTestCases.tcl6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/makeTestCases.tcl b/tools/makeTestCases.tcl
index 497205b..97f9a84 100755
--- a/tools/makeTestCases.tcl
+++ b/tools/makeTestCases.tcl
@@ -1,8 +1,9 @@
# TODO - When integrating this with the Core, path names will need to be
# swizzled here.
-package require newclock
+package require msgcat
set d [file dirname [file dirname [info script]]]
+puts "getting transition data from [file join $d library tzdata America Detroit]"
source [file join $d library/tzdata/America/Detroit]
namespace eval ::tcl::clock {
@@ -547,17 +548,14 @@ proc testcases5 { f2 } {
set fmt {%H:%M:%S %z %Z}
set i 0
- puts $f2 "::tcltest::testConstraint detroit 0"
puts $f2 "test clock-5.[incr i] {does Detroit exist} {"
puts $f2 " clock format 0 -format {} -timezone :America/Detroit"
- puts $f2 " ::tcltest::testConstraint detroit 1"
puts $f2 " concat"
puts $f2 "} {}"
puts $f2 "test clock-5.[incr i] {does Detroit have a Y2038 problem} detroit {"
puts $f2 " if { \[clock format 2158894800 -format %z -timezone :America/Detroit\] ne {-0400} } {"
puts $f2 " concat {y2038 problem}"
puts $f2 " } else {"
- puts $f2 " ::tcltest::testConstraint y2038 1"
puts $f2 " concat {ok}"
puts $f2 " }"
puts $f2 "} ok"