diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-24 22:03:59 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-24 22:03:59 +0000 |
commit | ad3986f07b99393eb3a6282381d82cc1e8fe02fd (patch) | |
tree | 2fae34b761d0bc691347934f28d60eba28bbd03c /gdb/testsuite/gdb.base/constvars.exp | |
parent | 6f875884e04b91b36840b991ce4509f9bf560367 (diff) | |
download | fsf-binutils-gdb-ad3986f07b99393eb3a6282381d82cc1e8fe02fd.zip fsf-binutils-gdb-ad3986f07b99393eb3a6282381d82cc1e8fe02fd.tar.gz fsf-binutils-gdb-ad3986f07b99393eb3a6282381d82cc1e8fe02fd.tar.bz2 |
2010-05-24 Michael Snyder <msnyder@vmware.com>
* gdb.base/call-ar-st.exp: Replace send_gdb with gdb_test.
* gdb.base/callfuncs.exp: Replace send_gdb with gdb_test.
* gdb.base/call-rt-st.exp: Replace send_gdb with gdb_test.
* gdb.base/call-signal-resume.exp: Replace send_gdb with gdb_test.
* gdb.base/call-strs.exp: Replace send_gdb with gdb_test.
* gdb.base/catch-syscall.exp: Replace send_gdb with gdb_test.
* gdb.base/charset.exp: Replace send_gdb with gdb_test.
* gdb.base/checkpoint.exp: Replace send_gdb with gdb_test.
* gdb.base/commands.exp: Replace send_gdb with gdb_test.
* gdb.base/condbreak.exp: Replace send_gdb with gdb_test.
* gdb.base/cond-exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/consecutive.exp: Replace send_gdb with gdb_test.
* gdb.base/constvars.exp: Replace send_gdb with gdb_test.
* gdb.base/corefile.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/constvars.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/constvars.exp | 50 |
1 files changed, 12 insertions, 38 deletions
diff --git a/gdb/testsuite/gdb.base/constvars.exp b/gdb/testsuite/gdb.base/constvars.exp index efd8170..4d698d8 100644 --- a/gdb/testsuite/gdb.base/constvars.exp +++ b/gdb/testsuite/gdb.base/constvars.exp @@ -90,52 +90,26 @@ proc local_compiler_xfail_check_2 { } { } } -send_gdb "break marker1\n" ; gdb_expect -re ".*$gdb_prompt $" +gdb_test "break marker1" "Breakpoint $decimal at .*" - send_gdb "cont\n" - gdb_expect { - -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" { - send_gdb "up\n" - gdb_expect { - -re ".*main.*$gdb_prompt $" { - pass "up from marker1" - } - -re ".*$gdb_prompt $" { - fail "up from marker1" - } - timeout { fail "up from marker1 (timeout)" } - } - } - -re "Break.* marker1__.* \\(\\) at .*:$decimal.*$gdb_prompt $" { - fail "continue to marker1 (demangling)" - send_gdb "up\n" - gdb_expect { - -re ".*main.*$gdb_prompt $" { - pass "up from marker1" - } - -re ".*$gdb_prompt $" { - fail "up from marker1" - } - timeout { fail "up from marker1 (timeout)" } - } - } - -re "$gdb_prompt $" { fail "continue to marker1" } - timeout { fail "(timeout) continue to marker1" } +gdb_test_multiple "cont" "up from marker1" { + -re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" { + pass "continue to marker1" + gdb_test "up" " main .*" "up from marker1" } + -re "Break.* marker1__.* \\(\\) at .*:$decimal.*$gdb_prompt $" { + fail "continue to marker1 (demangling)" + gdb_test "up" " main .*" "up from marker1" + } +} # test function parameters local_compiler_xfail_check local_compiler_xfail_check_2 -send_gdb "ptype qux1\n" -gdb_expect { - -re "type = int \\(const char, const char, const char \\*, char \\* const\\).*$gdb_prompt $" { - pass "ptype qux1" - } - -re ".*$gdb_prompt $" { fail "ptype qux1" } - timeout { fail "(timeout) ptype qux1" } -} +gdb_test "ptype qux1" \ + "type = int \\(const char, const char, const char \\*, char \\* const\\).*" # test vars and pointers |