summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2015-10-23 12:52:19 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2015-10-23 12:52:19 (GMT)
commitf99f9dafa7b110163fe611aa0b1662d1487a61dc (patch)
tree5e2db60c56ec078274ad33ed1120ab2c99a1a9be /tests
parent22e3ac0c1c7e1f145b6a2cd9975e9b4680921ab9 (diff)
downloadtcl-f99f9dafa7b110163fe611aa0b1662d1487a61dc.zip
tcl-f99f9dafa7b110163fe611aa0b1662d1487a61dc.tar.gz
tcl-f99f9dafa7b110163fe611aa0b1662d1487a61dc.tar.bz2
Make test clock-67.4 time zone independent. Bug [4a0c163d24]
Diffstat (limited to 'tests')
-rw-r--r--tests/clock.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/clock.test b/tests/clock.test
index d4f0bc9..615f3a8 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -36942,12 +36942,12 @@ test clock-67.4 {Change format %x output on global locale change [Bug 4a0c163d24
set current [msgcat::mclocale]
} -body {
msgcat::mclocale de_de
- set res [list [clock format 1 -locale current -format %x]]
+ set res [regexp {^\d{2}\.\d{2}\.\d{4}$} [clock format 1 -locale current -format %x]]
msgcat::mclocale en_uk
- lappend res [clock format 1 -locale current -format %x]
+ lappend res [regexp {^\d{2}/\d{2}/\d{4}$} [clock format 1 -locale current -format %x]]
} -cleanup {
msgcat::mclocale $current
-} -result {01.01.1970 01/01/1970}
+} -result {1 1}
test clock-67.5 {Change scan %x output on global locale change [Bug 4a0c163d24]} -setup {
package require msgcat