From d54b30bb5de9845fdb54227c87f202338eba9e87 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 6 Sep 2012 17:52:38 +0000 Subject: [PATCH] * gdb.python/py-value.exp: Use clean_restart. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-value.exp | 10 ++-------- 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 + + * 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 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 } -- 2.7.4