diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-01-04 11:43:58 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-04 11:43:58 -0500 |
commit | 5169ae34bc8bd92a6b4403c6565a4168360e84f8 (patch) | |
tree | fe443420d3b5e28d7df5124a2e6e59109ff6c6bb /gdb | |
parent | 7b0ff8a22af175fd8f1aeb3b4ed3d7caf7befc3f (diff) | |
download | gdb-5169ae34bc8bd92a6b4403c6565a4168360e84f8.zip gdb-5169ae34bc8bd92a6b4403c6565a4168360e84f8.tar.gz gdb-5169ae34bc8bd92a6b4403c6565a4168360e84f8.tar.bz2 |
gdb/testsuite: use clean_restart in gdb.server/ext-run.exp
I think the sequence of commands here could be replaced with
clean_restart. The test starts with GDB not started, so it should not
be started when we reach gdb_skip_xml_test.
gdb/testsuite/ChangeLog:
* gdb.server/ext-run.exp: Use clean_restart.
Change-Id: I8c033bad6c52f3d58d6aa377b8355fc633c7aede
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.server/ext-run.exp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3200c34..053e12e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2021-01-04 Simon Marchi <simon.marchi@efficios.com> + * gdb.server/ext-run.exp: Use clean_restart. + +2021-01-04 Simon Marchi <simon.marchi@efficios.com> + * gdb.server/stop-reply-no-thread.exp: Use build_executable instead of prepare_for_testing. diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp index 7d65759..92aef14 100644 --- a/gdb/testsuite/gdb.server/ext-run.exp +++ b/gdb/testsuite/gdb.server/ext-run.exp @@ -29,14 +29,10 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { return -1 } -# Start with a fresh gdb, gdb_skip_xml_test must be called while gdb -# is not running. - -gdb_exit +# gdb_skip_xml_test must be called while gdb is not running. set do_xml_test [expr ![gdb_skip_xml_test]] -gdb_start -gdb_load $binfile -gdb_reinitialize_dir $srcdir/$subdir + +clean_restart $binfile # Make sure we're disconnected, in case we're testing with an # extended-remote board, therefore already connected. |