summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/server-kill.exp
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-04-04 02:16:04 +0000
committerqiyao <qiyao>2013-04-04 02:16:04 +0000
commit871d76f17d4bcd93091c4203af28dc9c096d8abd (patch)
treef8150d24d6c278b6e4598104a43f53125045da49 /gdb/testsuite/gdb.server/server-kill.exp
parent443a6353c89a7f4aeaab7466929f8084b3d1b14b (diff)
downloadgdb-871d76f17d4bcd93091c4203af28dc9c096d8abd.tar.gz
gdb/testsuite/
* gdb.server/server-kill.exp: Use command 'tstatus' instead of 'step'.
Diffstat (limited to 'gdb/testsuite/gdb.server/server-kill.exp')
-rw-r--r--gdb/testsuite/gdb.server/server-kill.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp
index 45a2a895464..1b4815251b3 100644
--- a/gdb/testsuite/gdb.server/server-kill.exp
+++ b/gdb/testsuite/gdb.server/server-kill.exp
@@ -40,4 +40,6 @@ delete_breakpoints
set server_pid [exp_pid -i [board_info target fileid]]
remote_exec target "kill -9 $server_pid"
-gdb_test "step" "Remote connection closed"
+# Force GDB to talk with GDBserver, so that we can get the
+# "connection closed" error.
+gdb_test "tstatus" "Remote connection closed"