diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-20 17:52:54 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-20 17:52:54 +0000 |
commit | 4a07b7dac5eddac80d7e424d97a6baf0dc5d2fa4 (patch) | |
tree | 35075ba8da23fdedc3e27ff8ed1ca44305b5346c | |
parent | b275f2d2f24885f1261c1d1fbc1e683ceb47fa1c (diff) | |
download | gdb-4a07b7dac5eddac80d7e424d97a6baf0dc5d2fa4.zip gdb-4a07b7dac5eddac80d7e424d97a6baf0dc5d2fa4.tar.gz gdb-4a07b7dac5eddac80d7e424d97a6baf0dc5d2fa4.tar.bz2 |
2011-05-20 Pedro Alves <pedro@codesourcery.com>
Cope with async mode.
gdb/testsuite/
* gdb.mi/mi-break.exp (test_breakpoint_commands): Split gdb_test
into gdb_test + mi_expect_stop.
-rw-r--r-- | gdb/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-break.exp | 17 |
2 files changed, 21 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index df51d61..c043204 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2011-05-20 Pedro Alves <pedro@codesourcery.com> + Cope with async mode. + + gdb/testsuite/ + * gdb.mi/mi-break.exp (test_breakpoint_commands): Split gdb_test + into gdb_test + mi_expect_stop. + +2011-05-20 Pedro Alves <pedro@codesourcery.com> + * gdb.mi/basics.c: Don't include stdio.h or unistd.h. (callme): Remove printf call. diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp index b7977b7..969cf4c 100644 --- a/gdb/testsuite/gdb.mi/mi-break.exp +++ b/gdb/testsuite/gdb.mi/mi-break.exp @@ -232,10 +232,19 @@ proc test_breakpoint_commands {} { "\\^done" \ "breakpoint commands: set commands" - mi_send_resuming_command "exec-continue" "test hitting breakpoint with commands" - mi_gdb_test "" \ - ".*\\\$1 = 0.*\\\$10 = 9.*\\*running.*\\*stopped,reason=\"exited-normally\".*" \ - "test hitting breakpoint with commands" + mi_send_resuming_command "exec-continue" "breakpoint commands: continue" + + set test "intermediate stop and continue" + gdb_expect { + -re ".*\\\$1 = 0.*\\\$10 = 9.*\\*running" { + pass $test + } + timeout { + fail $test + } + } + + mi_expect_stop "exited-normally" "" "" "" "" "" "test hitting breakpoint with commands" } test_tbreak_creation_and_listing |