Index: gdb/testsuite/gdb.opt/inline-locals.exp |
diff --git a/gdb/testsuite/gdb.opt/inline-locals.exp b/gdb/testsuite/gdb.opt/inline-locals.exp |
index f11167f9b7bbc58dab0114a31569515ae40d4e15..7ff6a13b9cffb1fd2ae2b34dd9b00800d6adea6e 100644 |
--- a/gdb/testsuite/gdb.opt/inline-locals.exp |
+++ b/gdb/testsuite/gdb.opt/inline-locals.exp |
@@ -13,28 +13,16 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-set testfile "inline-locals" |
-set srcfile ${testfile}.c |
-set srcfile2 "inline-markers.c" |
-set fullsrcfile "${srcdir}/${subdir}/${srcfile}" |
-set fullsrcfile2 "${srcdir}/${subdir}/${srcfile2}" |
-set sources [list ${fullsrcfile} ${fullsrcfile2}] |
-set binfile ${objdir}/${subdir}/${testfile} |
- |
-if { [gdb_compile ${sources} ${binfile} \ |
- executable {debug optimize=-O2}] != "" } { |
- untested inline-locals.exp |
+standard_testfile .c inline-markers.c |
+ |
+if {[prepare_for_testing $testfile.exp $testfile \ |
+ [list $srcfile $srcfile2] {debug optimize=-O2}]} { |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
- |
runto_main |
-get_compiler_info $binfile |
+get_compiler_info |
get_debug_format |
if { [skip_inline_var_tests] } { |
untested inline-bt.exp |