aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-frame.exp
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-02-26 14:06:28 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-02-26 14:06:28 +0000
commit2279eaad98fbbc7c036796930e2ac839d581c18a (patch)
tree9f80699861431d16349d93b53f16cf1cc0f9befb /gdb/testsuite/gdb.python/py-frame.exp
parent174b85fcf14c36cd2f94d3ae9b21fece3f115466 (diff)
downloadgdb-2279eaad98fbbc7c036796930e2ac839d581c18a.zip
gdb-2279eaad98fbbc7c036796930e2ac839d581c18a.tar.gz
gdb-2279eaad98fbbc7c036796930e2ac839d581c18a.tar.bz2
use prepare_for_testing in gdb.python/py-frame.exp
gdb/testsuite/ChangeLog: * gdb.python/py-frame.exp: Simplify the initialization phase using prepare_for_testing.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-frame.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-frame.exp11
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp
index e3b5629..1cb573e 100644
--- a/gdb/testsuite/gdb.python/py-frame.exp
+++ b/gdb/testsuite/gdb.python/py-frame.exp
@@ -24,19 +24,10 @@ load_lib gdb-python.exp
set testfile "py-frame"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "Couldn't compile ${srcfile}"
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
return -1
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }