Index: gdb/testsuite/gdb.pascal/integers.exp |
diff --git a/gdb/testsuite/gdb.pascal/integers.exp b/gdb/testsuite/gdb.pascal/integers.exp |
index 8cdc00ca21fd877373c305f25fe56edc971aa384..82ce06567918a729cae226dc7307856d4785f7f8 100644 |
--- a/gdb/testsuite/gdb.pascal/integers.exp |
+++ b/gdb/testsuite/gdb.pascal/integers.exp |
@@ -13,24 +13,15 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
load_lib "pascal.exp" |
-set testfile "integers" |
-set srcfile ${testfile}.pas |
-set binfile ${objdir}/${subdir}/${testfile}$EXEEXT |
+standard_testfile .pas |
if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } { |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${testfile} |
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"] |
set bp_location2 [gdb_get_line_number "set breakpoint 2 here"] |