diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-24 22:06:59 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-24 22:06:59 +0000 |
commit | a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136 (patch) | |
tree | 503018fe47350071e8f7d719a5dedd8e4c4925c0 /gdb/testsuite/gdb.base/fileio.exp | |
parent | ad3986f07b99393eb3a6282381d82cc1e8fe02fd (diff) | |
download | fsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.zip fsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.tar.gz fsf-binutils-gdb-a76e022adf3f91ab44ae8b95e7a5bdc2e06b7136.tar.bz2 |
2010-05-24 Michael Snyder <msnyder@vmware.com>
* gdb.base/default.exp: Replace send_gdb with gdb_test.
* gdb.base/define.exp: Replace send_gdb with gdb_test.
* gdb.base/display.exp: Replace send_gdb with gdb_test.
* gdb.base/dump.exp: Replace send_gdb with gdb_test.
* gdb.base/ending-run.exp: Replace send_gdb with gdb_test.
* gdb.base/eval-skip.exp: Replace send_gdb with gdb_test.
* gdb.base/exprs.exp: Replace send_gdb with gdb_test.
* gdb.base/fileio.exp: Replace send_gdb with gdb_test.
* gdb.base/finish.exp: Replace send_gdb with gdb_test.
* gdb.base/foll-fork.exp: Replace send_gdb with gdb_test.
* gdb.base/funcargs.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore-buffer-overflow.exp: Replace send_gdb with gdb_test.
* gdb.base/gcore.exp: Replace send_gdb with gdb_test.
* gdb.base/gdb1090.exp: Replace send_gdb with gdb_test.
* gdb.base/gdbvars.exp: Replace send_gdb with gdb_test.
* gdb.base/help.exp: Replace send_gdb with gdb_test.
* gdb.base/info-proc.exp: Replace send_gdb with gdb_test.
* gdb.base/jump.exp: Replace send_gdb with gdb_test.
* gdb.base/long_long.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.base/fileio.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.exp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp index 2a2e0ae..bd1876c 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -54,17 +54,17 @@ gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -send_gdb "set print sevenbit-strings\n" ; gdb_expect -re "$gdb_prompt $" -send_gdb "set print address off\n" ; gdb_expect -re "$gdb_prompt $" -send_gdb "set width 0\n" ; gdb_expect -re "$gdb_prompt $" - +gdb_test_no_output "set print sevenbit-strings" +gdb_test_no_output "set print address off" +gdb_test_no_output "set width 0" if ![runto_main] then { perror "couldn't run to breakpoint" continue } -send_gdb "break stop\n" ; gdb_expect -re "Breakpoint .*$srcfile.*$gdb_prompt $" +gdb_test "break stop" "Breakpoint .*$srcfile.*" + set stop_msg ".*Breakpoint .* stop \\(\\) at.*$srcfile:.*static void stop \\(\\) {}.*" gdb_test continue \ @@ -83,7 +83,8 @@ gdb_test continue \ "Continuing\\..*open 4:.*ENOENT$stop_msg" \ "Opening nonexistant file returns ENOENT" -send_gdb "continue\n" ; gdb_expect -re "$gdb_prompt $" +gdb_test "continue" "" "" + catch "system \"chmod -f -w nowrt.fileio.test\"" gdb_test continue \ @@ -179,7 +180,8 @@ gdb_test continue \ "Continuing\\..*system 1:.*OK$stop_msg" \ "System says shell is available" -send_gdb "set remote system-call-allowed 1\n"; gdb_expect -re ".*$gdb_prompt $" +gdb_test_no_output "set remote system-call-allowed 1" + gdb_test continue \ "Continuing\\..*system 2:.*OK$stop_msg" \ "System(3) call" |