From: Doug Evans Date: Thu, 6 Sep 2012 17:52:38 +0000 (+0000) Subject: * gdb.python/py-value.exp: Use clean_restart. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d54b30bb5de9845fdb54227c87f202338eba9e87;p=binutils-gdb.git * gdb.python/py-value.exp: Use clean_restart. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index da7b1c7b5b8..cf32a20b456 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-09-06 Doug Evans + + * gdb.python/py-value.exp: Use clean_restart. + 2012-09-05 Doug Evans * 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 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 }