| Index: gdb/testsuite/gdb.base/define.exp
|
| diff --git a/gdb/testsuite/gdb.base/define.exp b/gdb/testsuite/gdb.base/define.exp
|
| index 889eca828cf8878ce448cc7ae06602825bc02ba7..6b647f2f1b028b83b277f16b0629a1e8124dd335 100644
|
| --- a/gdb/testsuite/gdb.base/define.exp
|
| +++ b/gdb/testsuite/gdb.base/define.exp
|
| @@ -1,5 +1,4 @@
|
| -# Copyright 1998-1999, 2001, 2003-2004, 2007-2012 Free Software
|
| -# Foundation, Inc.
|
| +# Copyright 1998-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -21,31 +20,13 @@
|
| # test running programs
|
| #
|
|
|
| -set testfile "break"
|
| -set srcfile ${testfile}.c
|
| -set srcfile1 ${testfile}1.c
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_testfile break.c break1.c
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}0.o" object {debug nowarnings}] != "" } {
|
| - untested define.exp
|
| - return -1
|
| +if {[prepare_for_testing ${testfile}.exp ${testfile} \
|
| + [list $srcfile $srcfile2] {debug nowarnings}]} {
|
| + return -1
|
| }
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile}1.o" object {debug nowarnings}] != "" } {
|
| - untested define.exp
|
| - return -1
|
| -}
|
| -
|
| -if { [gdb_compile "${binfile}0.o ${binfile}1.o" "${binfile}" executable {debug nowarnings}] != "" } {
|
| - untested define.exp
|
| - return -1
|
| -}
|
| -
|
| -gdb_exit
|
| -gdb_start
|
| -gdb_reinitialize_dir $srcdir/$subdir
|
| -gdb_load ${binfile}
|
| -
|
| set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
|
| set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
|
|
|
|
|