aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/term.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/term.exp')
-rw-r--r--gdb/testsuite/gdb.base/term.exp14
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.base/term.exp b/gdb/testsuite/gdb.base/term.exp
index 6275202..de6f58a 100644
--- a/gdb/testsuite/gdb.base/term.exp
+++ b/gdb/testsuite/gdb.base/term.exp
@@ -38,20 +38,10 @@ gdb_start
set prms_id 0
set bug_id 0
-set testfile "run"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested term.exp
- return -1
+if { [prepare_for_testing term.exp term run.c] } {
+ return -1
}
-gdb_exit
-gdb_start
-delete_breakpoints
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
gdb_test "set print sevenbit-strings" "" "test set print sevenbit-strings"
gdb_test "set print address off" "" "test set print address off"
gdb_test "set width 0" "" "test set width 0"