summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-11-23 21:19:49 (GMT)
committerhobbs <hobbs>2007-11-23 21:19:49 (GMT)
commit0cf11b03177cded9d26650e22e10b28dacfa57c8 (patch)
tree837e8bc7a716b7532c464c62bbe2743d5a062309 /tests/var.test
parentb400e7071cf4016d6bcc94da3ab8cd195c59c222 (diff)
downloadtcl-0cf11b03177cded9d26650e22e10b28dacfa57c8.zip
tcl-0cf11b03177cded9d26650e22e10b28dacfa57c8.tar.gz
tcl-0cf11b03177cded9d26650e22e10b28dacfa57c8.tar.bz2
* generic/tclVar.c (Tcl_ArrayObjCmd): handle the right data for
* tests/var.test (var-14.2): [array names $var -glob $ptn]
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test
index 57c6fe4..e1a616d 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -14,7 +14,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: var.test,v 1.28 2007/03/12 18:06:14 dgp Exp $
+# RCS: @(#) $Id: var.test,v 1.29 2007/11/23 21:19:51 hobbs Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -680,6 +680,10 @@ test var-14.1 {array names syntax} -body {
array names foo bar baz snafu
} -returnCodes 1 -match glob -result *
+test var-14.2 {array names -glob} -body {
+ array names tcl_platform -glob os
+} -returnCodes 0 -match exact -result os
+
test var-15.1 {segfault in [unset], [Bug 735335]} {
proc A { name } {
upvar $name var