This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]