summaryrefslogtreecommitdiffstats
path: root/tests/registry.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-28 14:52:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-28 14:52:43 (GMT)
commitfac7c80aed10356b5116daca1d8b8a160aa1d18d (patch)
tree7c8d977863510bf506b626330a9aaf1f87a2daf5 /tests/registry.test
parent511869919b8096663ea9389b87afc807627fd9e4 (diff)
downloadtcl-fac7c80aed10356b5116daca1d8b8a160aa1d18d.zip
tcl-fac7c80aed10356b5116daca1d8b8a160aa1d18d.tar.gz
tcl-fac7c80aed10356b5116daca1d8b8a160aa1d18d.tar.bz2
[Bug 3549770] Multiple test failures running tcltest outside build tree
Diffstat (limited to 'tests/registry.test')
-rw-r--r--tests/registry.test11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/registry.test b/tests/registry.test
index f90f602..cda914f 100644
--- a/tests/registry.test
+++ b/tests/registry.test
@@ -17,13 +17,12 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
testConstraint reg 0
if {[testConstraint win]} {
- catch {
- # Is the registry extension already static to this shell?
- if [catch {load {} Registry; set ::reglib {}}] {
- # try the location given to use on the commandline to tcltest
+ if {![catch {load {} Registry}]
+ || ![catch {package require registry}]
+ || ![catch {
::tcltest::loadTestedCommands
load $::reglib Registry
- }
+ }]} {
testConstraint reg 1
}
}
@@ -460,7 +459,7 @@ test registry-6.20 {GetValue: values with Unicode strings with embedded nulls} {
registry delete HKEY_CURRENT_USER\\TclFoobar
set result
} "foo ba r baz"
-test registry-6.21 {GetValue: very long value names and values} {pcOnly} {
+test registry-6.21 {GetValue: very long value names and values} {pcOnly reg} {
registry set HKEY_CURRENT_USER\\TclFoobar [string repeat k 199] [string repeat x 199] multi_sz
set result [registry get HKEY_CURRENT_USER\\TclFoobar [string repeat k 199]]
registry delete HKEY_CURRENT_USER\\TclFoobar