This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Regression for gdb.go/package.exp [Re: FYI: cleanups for gdb.go]
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> +UNTESTED: gdb.go/package.exp: package.exp
Jan> On all tested configurations.
Sorry about that.
Here is the fix I am putting in.
Tom
ChangeLog:
2012-06-28 Tom Tromey <tromey@redhat.com>
* gdb.go/package.exp: Partially revert earlier patch; use
gdb_compile again. Use standard_output_file.
Index: gdb.go/package.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.go/package.exp,v
retrieving revision 1.2
diff -u -r1.2 package.exp
--- gdb.go/package.exp 25 Jun 2012 19:13:25 -0000 1.2
+++ gdb.go/package.exp 28 Jun 2012 13:36:23 -0000
@@ -23,10 +23,17 @@
standard_testfile package1.go package2.go
-if {[prepare_for_testing $testfile.exp $testfile [list $srcfile $srcfile2] \
- [list debug go libdir=[standard_output_file {}]]]} {
+if { [gdb_compile "${srcdir}/${subdir}/${testfile}2.go" "${binfile}2.o" object {debug go}] != "" } {
+ untested $testfile
return -1
}
+
+if { [gdb_compile "${srcdir}/${subdir}/${testfile}1.go ${binfile}2.o" "${binfile}" executable "debug go libdir=[standard_output_file {}]"] != "" } {
+ untested $testfile
+ return -1
+}
+
+clean_restart $testfile
if { [go_runto_main] < 0 } {
untested methods