summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-09-06 17:52:37 +0000
committerDoug Evans <dje@google.com>2012-09-06 17:52:37 +0000
commitc0aab0d73a30f1c7d1a952cdcc93da56fabff509 (patch)
treee6c356037cd66ab654ae3882d40239a246a39622 /gdb/testsuite/gdb.python
parent6ad1958845d3107f289f93a7dd29e3f8b3c9b621 (diff)
downloadgdb-c0aab0d73a30f1c7d1a952cdcc93da56fabff509.tar.gz
* gdb.python/py-value.exp: Use clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-value.exp10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp
index 87b0734a27e..03dbb2c0717 100644
--- a/gdb/testsuite/gdb.python/py-value.exp
+++ b/gdb/testsuite/gdb.python/py-value.exp
@@ -367,10 +367,7 @@ proc test_subscript_regression {exefile lang} {
global srcdir subdir
# Start with a fresh gdb.
- gdb_exit
- gdb_start
- gdb_reinitialize_dir $srcdir/$subdir
- gdb_load ${exefile}
+ clean_restart ${exefile}
if ![runto_main ] then {
perror "couldn't run to breakpoint"
@@ -467,10 +464,7 @@ build_inferior "${binfile}-cxx" "c++"
# Start with a fresh gdb.
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${binfile}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }