summaryrefslogtreecommitdiffstats
path: root/tests/msgcat.test
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2015-06-01 15:16:58 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2015-06-01 15:16:58 (GMT)
commit6f959222be89d77b961b390be662e050645c2fa3 (patch)
treef17d31f8246439f95ab0f96a90edacefcd22ad33 /tests/msgcat.test
parent8f43773d556745dc81ae85fbd68564eb44fd3e24 (diff)
downloadtcl-6f959222be89d77b961b390be662e050645c2fa3.zip
tcl-6f959222be89d77b961b390be662e050645c2fa3.tar.gz
tcl-6f959222be89d77b961b390be662e050645c2fa3.tar.bz2
Make all msgcat tests pass
Diffstat (limited to 'tests/msgcat.test')
-rwxr-xr-x[-rw-r--r--]tests/msgcat.test13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/msgcat.test b/tests/msgcat.test
index 050b592..8fd94e1 100644..100755
--- a/tests/msgcat.test
+++ b/tests/msgcat.test
@@ -17,8 +17,8 @@ if {[catch {package require tcltest 2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2 required."
return
}
-if {[catch {package require msgcat 1.5}]} {
- puts stderr "Skipping tests in [info script]. No msgcat 1.5 found to test."
+if {[catch {package require msgcat 1.6}]} {
+ puts stderr "Skipping tests in [info script]. No msgcat 1.6 found to test."
return
}
@@ -412,9 +412,14 @@ namespace eval ::msgcat::test {
foreach loc {foo foo_BAR foo_BAR_baz} {
test msgcat-5.$count {mcload} -setup {
variable locale [mclocale]
+ ::msgcat::mclocale ""
+ ::msgcat::mcloadedlocales clear
+ ::msgcat::mcpackageconfig unset mcfolder
mclocale $loc
} -cleanup {
mclocale $locale
+ ::msgcat::mcloadedlocales clear
+ ::msgcat::mcpackageconfig unset mcfolder
} -body {
mcload $msgdir
} -result [expr { $count+1 }]
@@ -428,6 +433,8 @@ namespace eval ::msgcat::test {
mclocale foo_BAR_notexist
} -cleanup {
mclocale $locale
+ ::msgcat::mcloadedlocales clear
+ ::msgcat::mcpackageconfig unset mcfolder
} -body {
mcload $msgdir
} -result 3
@@ -437,6 +444,8 @@ namespace eval ::msgcat::test {
mclocale no_FI_notexist
} -cleanup {
mclocale $locale
+ ::msgcat::mcloadedlocales clear
+ ::msgcat::mcpackageconfig unset mcfolder
} -body {
mcload $msgdir
} -result 1