gdb/testsuite: use build_executable in gdb.server/stop-reply-no-thread.exp
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 4 Jan 2021 16:43:58 +0000 (11:43 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 4 Jan 2021 16:43:58 +0000 (11:43 -0500)
commit7b0ff8a22af175fd8f1aeb3b4ed3d7caf7befc3f
tree23c4fe4abb1d4972b5dc95988fd51f9e909bd365
parenta754fbdfa22cf9f56a0ff20e7b5f400daeb4b3e7
gdb/testsuite: use build_executable in gdb.server/stop-reply-no-thread.exp

This test uses prepare_for_testing, then does a clean_restart for each
test configuration.  prepare_for_testing does a build_executable plus a
clean_restart.  So the clean_restart inside prepare_for_testing is done
for nothing.

Change prepare_for_testing to just build_executable to avoid the
unnecessary clean_restart.

gdb/testsuite/ChangeLog:

* gdb.server/stop-reply-no-thread.exp: Use build_executable
instead of prepare_for_testing.

Change-Id: I8b2a2e90353c57c39c49a3665083331b4882fdd0
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.server/stop-reply-no-thread.exp