diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-06-01 18:18:35 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-06-01 18:18:35 +0000 |
commit | f8d3bf8f5206c7084bd9e639394c15716562a041 (patch) | |
tree | 95030c802594ef1f585e9022211e9e2350571902 /gdb/testsuite/gdb.cp/userdef.exp | |
parent | 285d560d3afdd33d59c7f9ee0abe6e854df299e4 (diff) | |
download | gdb-f8d3bf8f5206c7084bd9e639394c15716562a041.zip gdb-f8d3bf8f5206c7084bd9e639394c15716562a041.tar.gz gdb-f8d3bf8f5206c7084bd9e639394c15716562a041.tar.bz2 |
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.cp/annota2.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/annota3.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/anon-union.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/cplusfuncs.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/demangle.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/formatted-ref.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/local.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/method.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/misc.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/namespace.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/ovldbreak.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/pr-1023.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/ref-types.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/templates.exp: Replace uses of send_gdb / gdb_expect.
* gdb.cp/userdef.exp: Replace uses of send_gdb / gdb_expect.
Diffstat (limited to 'gdb/testsuite/gdb.cp/userdef.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/userdef.exp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.cp/userdef.exp b/gdb/testsuite/gdb.cp/userdef.exp index 33bb485..1a6fd2e 100644 --- a/gdb/testsuite/gdb.cp/userdef.exp +++ b/gdb/testsuite/gdb.cp/userdef.exp @@ -52,20 +52,14 @@ if ![runto_main] then { continue } -send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $" - send_gdb "cont\n" - gdb_expect { - -re "Break.* marker1(\\(\\)|) \\(\\) at .*:$decimal.*$gdb_prompt $" { - send_gdb "up\n" - gdb_expect { - -re ".*$gdb_prompt $" { pass "up from marker1" } - timeout { fail "up from marker1" } - } - } - -re "$gdb_prompt $" { fail "continue to marker1" } - timeout { fail "(timeout) continue to marker1" } - } +gdb_test "break marker1" \ + "Breakpoint .*${srcfile}.*" + +gdb_test "cont" \ + "Break.* marker1(\\(\\)|) \\(\\) at .*:$decimal.*" \ + "continue to marker1" +gdb_test "up" " in main .*" "up from marker1" gdb_test "print one + two" "\\\$\[0-9\]* = {x = 6, y = 8}" |