Index: gdb/testsuite/gdb.pascal/hello.exp |
diff --git a/gdb/testsuite/gdb.pascal/hello.exp b/gdb/testsuite/gdb.pascal/hello.exp |
index ce3091985e34ce0f1cbe48c058fb2ed67acc0078..cd0fce6e3d010b92de6e01ab3174401a8a4c29a0 100644 |
--- a/gdb/testsuite/gdb.pascal/hello.exp |
+++ b/gdb/testsuite/gdb.pascal/hello.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 "hello" |
-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"] |