diff options
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-exit-code.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-exit-code.exp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.exp b/gdb/testsuite/gdb.mi/mi-exit-code.exp index f10b49c..b8a133a 100644 --- a/gdb/testsuite/gdb.mi/mi-exit-code.exp +++ b/gdb/testsuite/gdb.mi/mi-exit-code.exp @@ -16,11 +16,6 @@ load_lib mi-support.exp set MIFLAGS "-i=mi" -gdb_exit -if [mi_gdb_start] { - continue -} - standard_testfile if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { @@ -31,6 +26,9 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu proc test_list_thread_groups { } { global hex global decimal + global binfile + + mi_clean_restart # Before any run, exit-code should not be present. mi_gdb_test \ @@ -38,8 +36,10 @@ proc test_list_thread_groups { } { "122\\^done,groups=\\\[\{id=\"i1\",type=\"process\"\}\]" \ "-list-thread-groups before run shows no exit-code" + mi_clean_restart $binfile + with_test_prefix "first run" { - mi_run_to_main + mi_runto_main # During the run, exit-code should not be present. mi_gdb_test \ @@ -59,7 +59,7 @@ proc test_list_thread_groups { } { } with_test_prefix "second run" { - mi_run_to_main + mi_runto_main # Write the exit code we want in the global var mi_gdb_test "set var exit_code = 8" ".*\\^done" "write exit code" |