diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-28 13:52:51 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-28 13:52:51 +0000 |
commit | 22f1fbaefa293d5cbc2a881ff388aa36c4da93b7 (patch) | |
tree | 07e3d150139d9660e8d393f17107232beddcd12f /gdb/testsuite/gdb.go | |
parent | a61fdf08f5508c064ed82777cf83608e609044dc (diff) | |
download | binutils-gdb-22f1fbaefa293d5cbc2a881ff388aa36c4da93b7.tar.gz |
* gdb.go/package.exp: Partially revert earlier patch; use
gdb_compile again. Use standard_output_file.
Diffstat (limited to 'gdb/testsuite/gdb.go')
-rw-r--r-- | gdb/testsuite/gdb.go/package.exp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.go/package.exp b/gdb/testsuite/gdb.go/package.exp index a9186ac2df4..1fd65fc9186 100644 --- a/gdb/testsuite/gdb.go/package.exp +++ b/gdb/testsuite/gdb.go/package.exp @@ -23,10 +23,17 @@ if { [skip_go_tests] } { continue } 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 |