summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.java/jprint.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-26 18:34:12 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-26 18:34:12 +0000
commit23de6b34102ea355f05aaa1bfb4ebac1510f3407 (patch)
treea4202fd9a0c26dc593abd6918dbb8164f6a8dc6a /gdb/testsuite/gdb.java/jprint.exp
parenta127f7b4917bd9a4a1851451ae6f2c1a4af0a62a (diff)
downloadbinutils-gdb-23de6b34102ea355f05aaa1bfb4ebac1510f3407.tar.gz
2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.java/jmisc.exp: Replace send_gdb with gdb_test. * gdb.java/jprint.exp: Replace send_gdb with gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.java/jprint.exp')
-rw-r--r--gdb/testsuite/gdb.java/jprint.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.java/jprint.exp b/gdb/testsuite/gdb.java/jprint.exp
index 178c80a5a5f..18ff7ed12b8 100644
--- a/gdb/testsuite/gdb.java/jprint.exp
+++ b/gdb/testsuite/gdb.java/jprint.exp
@@ -41,11 +41,7 @@ proc set_lang_java {} {
verbose "loading file '$binfile'"
gdb_load $binfile
- send_gdb "set language java\n"
- gdb_expect {
- -re ".*$gdb_prompt $" {}
- timeout { fail "set language java (timeout)" ; return 0 }
- }
+ gdb_test_no_output "set language java"
return [gdb_test "show language" ".* source language is \"java\".*" \
"set language to \"java\""]