X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.ada%2Farray_return.exp;h=2c7e757c476299f8b4bb822f54411856be354149;hb=ecd75fc8eed3bde86036141228074a20e55dcfc9;hp=a4e11318b1484e4cdc207e7679edf1b32f2fdc64;hpb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;p=thirdparty%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.ada/array_return.exp b/gdb/testsuite/gdb.ada/array_return.exp index a4e11318b14..2c7e757c476 100644 --- a/gdb/testsuite/gdb.ada/array_return.exp +++ b/gdb/testsuite/gdb.ada/array_return.exp @@ -1,4 +1,4 @@ -# Copyright 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright 2005-2014 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 @@ -13,26 +13,17 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -if $tracelevel then { - strace $tracelevel -} - load_lib "ada.exp" -set testdir "array_return" -set testfile "${testdir}/p" -set srcfile ${srcdir}/${subdir}/${testfile}.adb -set binfile ${objdir}/${subdir}/${testfile} +if { [skip_ada_tests] } { return -1 } + +standard_ada_testfile p -file mkdir ${objdir}/${subdir}/${testdir} -if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } { - return -1 +if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { + return -1 } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +clean_restart ${testfile} # Start the inferior