aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/finish.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/finish.exp')
-rw-r--r--gdb/testsuite/gdb.base/finish.exp15
1 files changed, 2 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp
index 6d83d97..4c5a7e2 100644
--- a/gdb/testsuite/gdb.base/finish.exp
+++ b/gdb/testsuite/gdb.base/finish.exp
@@ -23,12 +23,8 @@ set prms_id 0
set bug_id 0
# re-use the program from the "return2" test.
-set testfile "return2"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested finish.exp
- return -1
+if { [prepare_for_testing finish.exp finish return2.c] } {
+ return -1
}
proc finish_1 { type } {
@@ -128,12 +124,5 @@ proc finish_tests { } {
finish_abbreviation "fin"
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
set timeout 30
finish_tests