[PATCH 2/5] gdb/testsuite: use build_executable in gdb.server/stop-reply-no-thread.exp
Simon Marchi
simon.marchi@polymtl.ca
Thu Dec 17 19:30:21 GMT 2020
From: Simon Marchi <simon.marchi@efficios.com>
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/gdb.server/stop-reply-no-thread.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.server/stop-reply-no-thread.exp b/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
index 7d99b0905757..cfac002cd12a 100644
--- a/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
+++ b/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
@@ -28,7 +28,7 @@ if { [skip_gdbserver_tests] } {
}
standard_testfile
-if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
+if { [build_executable "failed to prepare" $testfile $srcfile] == -1 } {
return -1
}
--
2.29.2
More information about the Gdb-patches
mailing list