diff mbox

perftest/utils.py (select_file): Kill any existing inferior before selecting a new file

Message ID m31tf52hbh.fsf@sspiff.org
State New
Headers show

Commit Message

Doug Evans Aug. 15, 2015, 6:31 a.m. UTC
Hi.

fyi, I have committed this.
I was getting some perf testsuite fails because a process was still
live while selecting the next benchmark in the series.

2015-08-14  Doug Evans  <xdje42@gmail.com>

	* gdb.perf/lib/perftest/utils.py (select_file): Kill any existing
	inferior before selecting a new file.
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.perf/lib/perftest/utils.py b/gdb/testsuite/gdb.perf/lib/perftest/utils.py
index e3b3443..8598003 100644
--- a/gdb/testsuite/gdb.perf/lib/perftest/utils.py
+++ b/gdb/testsuite/gdb.perf/lib/perftest/utils.py
@@ -36,6 +36,7 @@  def select_file(file_name):
     N.B. This turns confirmation off.
     """
     safe_execute("set confirm off")
+    safe_execute("kill")
     print ("Selecting file %s" % (file_name))
     if file_name is None:
         gdb.execute("file")