This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] use prepare_for_testing in gdb.python/py-frame.exp
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Sat, 26 Feb 2011 18:07:36 +0400
- Subject: [commit] use prepare_for_testing in gdb.python/py-frame.exp
Hello,
Subject says it all...
gdb/testsuite/ChangeLog:
* gdb.python/py-frame.exp: Simplify the initialization phase
using prepare_for_testing.
Tested on x86_64-linux. Checked in.
---
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 8e26291..7096c0e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-26 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.python/py-frame.exp: Simplify the initialization phase
+ using prepare_for_testing.
+
2011-02-25 Michael Snyder <msnyder@vmware.com>
* 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 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 }
--
1.7.1