From b8643dd96c035380e9f56c2185a8dec3ea8611bb Mon Sep 17 00:00:00 2001 From: brobecke Date: Sat, 26 Feb 2011 23:06:27 +0000 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.python/py-frame.exp | 11 +---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8e262912d2..7096c0e6fd 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-02-26 Joel Brobecker + + * gdb.python/py-frame.exp: Simplify the initialization phase + using prepare_for_testing. + 2011-02-25 Michael Snyder * gdb.multi/base.exp: Add tests for info inferiors with args. diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp index e3b56292f1..1cb573eb7a 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 } -- 2.11.0