]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: don't overwrite test executable in py-frame.exp
authorAndrew Burgess <aburgess@redhat.com>
Mon, 1 Jun 2026 10:32:53 +0000 (11:32 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 8 Jul 2026 09:29:51 +0000 (10:29 +0100)
In gdb.python/py-frame.exp when we re-compile the test executable
without debug information, give it a new, unique, name to make
re-running the tests outside the testsuite easier.

While I was in the area I removed a `gdb_exit` call that was not
necessary, `prepare_for_testing` calls `clean_restart` which already
does a `gdb_exit`.

There should be no change in what is being tested after this commit.

gdb/testsuite/gdb.python/py-frame.exp

index 6feb13924371d0ab39415577b4793a61b73327c2..596d82e4fb4260be6ebf21cb45ee3c754e033a2d 100644 (file)
@@ -204,8 +204,7 @@ gdb_test "python print(gdb.selected_frame().read_register(bad_object))" \
     "test Frame.read_register with bad_type object"
 
 # Compile again without debug info.
-gdb_exit
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
+if { [prepare_for_testing "failed to prepare" ${testfile}-nodebug ${srcfile} {}] } {
     return
 }