From 2279eaad98fbbc7c036796930e2ac839d581c18a Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sat, 26 Feb 2011 14:06:28 +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 8e262912d2f..7096c0e6fd6 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 e3b56292f10..1cb573eb7a1 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.30.2