summaryrefslogtreecommitdiffstats
path: root/tests/upvar.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-02-10 23:28:39 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-02-10 23:28:39 (GMT)
commit503ce016796ba300d912e764fda1619ed266de71 (patch)
treeeab01493548b93069c3c18cfd5200483512cd07a /tests/upvar.test
parent97ddceae2735bb515100b9880a07e2fc9defab4d (diff)
downloadtcl-503ce016796ba300d912e764fda1619ed266de71.zip
tcl-503ce016796ba300d912e764fda1619ed266de71.tar.gz
tcl-503ce016796ba300d912e764fda1619ed266de71.tar.bz2
Two more hash-iteration-order assumptions bite the dust
Diffstat (limited to 'tests/upvar.test')
-rw-r--r--tests/upvar.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/upvar.test b/tests/upvar.test
index 86a5a20..dbf6dd5 100644
--- a/tests/upvar.test
+++ b/tests/upvar.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: upvar.test,v 1.19 2009/03/24 09:30:07 dkf Exp $
+# RCS: @(#) $Id: upvar.test,v 1.20 2010/02/10 23:28:39 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -148,7 +148,7 @@ test upvar-3.5 {unsetting array elements with upvar} {
array names a
}
proc p2 {} {upvar a(0) x; unset x}
- p1
+ lsort [p1]
} {1 2}
test upvar-3.6 {unsetting then resetting array elements with upvar} {
proc p1 {} {
@@ -156,7 +156,7 @@ test upvar-3.6 {unsetting then resetting array elements with upvar} {
set a(1) first
set a(2) second
p2
- list [array names a] [catch {set a(0)} msg] $msg
+ list [lsort [array names a]] [catch {set a(0)} msg] $msg
}
proc p2 {} {upvar a(0) x; unset x; set x 12345}
p1