aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-09-06 17:52:38 +0000
committerDoug Evans <dje@google.com>2012-09-06 17:52:38 +0000
commitd54b30bb5de9845fdb54227c87f202338eba9e87 (patch)
tree268d691825d0f2ad76eaa1fe3bfd921660130908 /gdb
parentfa8f3997eb79a63589ae179ed51ca72ea4ed59e8 (diff)
downloadgdb-d54b30bb5de9845fdb54227c87f202338eba9e87.zip
gdb-d54b30bb5de9845fdb54227c87f202338eba9e87.tar.gz
gdb-d54b30bb5de9845fdb54227c87f202338eba9e87.tar.bz2
* gdb.python/py-value.exp: Use clean_restart.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-value.exp10
2 files changed, 6 insertions, 8 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index da7b1c7..cf32a20 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-06 Doug Evans <dje@google.com>
+
+ * gdb.python/py-value.exp: Use clean_restart.
+
2012-09-05 Doug Evans <dje@google.com>
* gdb.base/info-macros.c: Fix whitespace.
diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp
index 87b0734..03dbb2c 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 }