* gdb.dwarf2/clztest.exp: Fix initialization of tests array.
authorDoug Evans <dje@google.com>
Mon, 12 Sep 2011 18:07:22 +0000 (18:07 +0000)
committerDoug Evans <dje@google.com>
Mon, 12 Sep 2011 18:07:22 +0000 (18:07 +0000)
* gdb.dwarf2/typeddwarf.exp: Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/clztest.exp
gdb/testsuite/gdb.dwarf2/typeddwarf.exp

index b875a0b..cdd232d 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-12  Doug Evans  <dje@google.com>
+
+       * gdb.dwarf2/clztest.exp: Fix initialization of tests array.
+       * gdb.dwarf2/typeddwarf.exp: Ditto.
+
 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix compatibility with x32 arch.
index 4e8cd69..039320b 100644 (file)
@@ -35,9 +35,9 @@ if ![runto_main] {
     return -1
 }
 
-global tests
-set tests(_) -
-unset tests(_)
+# Initialize tests to be an empty array.
+unset -nocomplain tests
+array set tests {}
 
 proc gdb-test {line var value} {
     global tests
index ca0db06..7852371 100644 (file)
@@ -39,9 +39,9 @@ if ![runto_main] {
     return -1
 }
 
-global tests
-set tests(_) -
-unset tests(_)
+# Initialize tests to be an empty array.
+unset -nocomplain tests
+array set tests {}
 
 proc gdb-test {line var value} {
     global tests