This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix gdb.dwarf2/typeddwarf.exp failures.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Mon, 12 Sep 2011 11:08:52 -0700 (PDT)
- Subject: [commit] Fix gdb.dwarf2/typeddwarf.exp failures.
Hi.
I was seeing bizarre failures in gdb.dwarf2/typeddwarf.exp
and traced it to values left over from gdb.dwarf2/clztest.exp.
Committed.
2011-09-12 Doug Evans <dje@google.com>
* gdb.dwarf2/clztest.exp: Fix initialization of tests array.
* gdb.dwarf2/typeddwarf.exp: Ditto.
Index: gdb.dwarf2/clztest.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/clztest.exp,v
retrieving revision 1.2
diff -u -p -r1.2 clztest.exp
--- gdb.dwarf2/clztest.exp 13 May 2011 18:54:59 -0000 1.2
+++ gdb.dwarf2/clztest.exp 12 Sep 2011 18:05:26 -0000
@@ -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: gdb.dwarf2/typeddwarf.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/typeddwarf.exp,v
retrieving revision 1.4
diff -u -p -r1.4 typeddwarf.exp
--- gdb.dwarf2/typeddwarf.exp 8 Sep 2011 17:40:53 -0000 1.4
+++ gdb.dwarf2/typeddwarf.exp 12 Sep 2011 18:05:26 -0000
@@ -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