aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-async-run.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 10:01:57 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:31 -0700
commit3ad2b4af38e38e10166906f5238db098c886e1f9 (patch)
treeaa55aee7360c36a19d55494eca86288b12108a5a /gdb/testsuite/gdb.mi/mi-async-run.exp
parentd6acf25c03f8c507e134f7438bd4360464ce111e (diff)
downloadgdb-3ad2b4af38e38e10166906f5238db098c886e1f9.zip
gdb-3ad2b4af38e38e10166906f5238db098c886e1f9.tar.gz
gdb-3ad2b4af38e38e10166906f5238db098c886e1f9.tar.bz2
Use mi_clean_restart more
This changes a number of MI tests to use mi_clean_restart rather than separate calls. This reduces the number of lines, which is nice, and also provides a nicer model to copy for future tests.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-async-run.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-async-run.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-async-run.exp b/gdb/testsuite/gdb.mi/mi-async-run.exp
index 0267b54..cd668b1 100644
--- a/gdb/testsuite/gdb.mi/mi-async-run.exp
+++ b/gdb/testsuite/gdb.mi/mi-async-run.exp
@@ -35,12 +35,10 @@ proc test_async_run {} {
set GDBFLAGS [concat $GDBFLAGS " -ex \"set mi-async on\""]
- gdb_exit
- if [mi_gdb_start] {
+ if {[mi_clean_restart $binfile]} {
return
}
- mi_gdb_load ${binfile}
mi_run_cmd
mi_gdb_test "123-exec-interrupt --all" "123\\^done" "send interrupt command"
mi_expect_interrupt "expect interrupt"