Index: gdb/testsuite/gdb.base/gdb1250.exp |
diff --git a/gdb/testsuite/gdb.base/gdb1250.exp b/gdb/testsuite/gdb.base/gdb1250.exp |
index ef1e0677681a57fef726a4fdd01b15a73a6882ad..c12e90823ea7a9ec617174c588d66d23d8b77fc5 100644 |
--- a/gdb/testsuite/gdb.base/gdb1250.exp |
+++ b/gdb/testsuite/gdb.base/gdb1250.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2003, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2003-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 |
@@ -22,19 +22,14 @@ |
# test running programs |
# |
-set testfile "gdb1250" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile .c |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested gdb1250.exp |
return -1 |
} |
-gdb_exit |
-gdb_start |
-gdb_reinitialize_dir $srcdir/$subdir |
-gdb_load ${binfile} |
+clean_restart ${binfile} |
if ![runto abort {allow-pending}] then { |
continue |