summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/setshow.exp
diff options
context:
space:
mode:
authorBob Manson <manson@cygnus>1997-05-22 04:24:23 +0000
committerBob Manson <manson@cygnus>1997-05-22 04:24:23 +0000
commit28558bdb36be5186a20e17108bbace6628ee5934 (patch)
tree99ed51990690d239ae208249850fb4045c559a31 /gdb/testsuite/gdb.base/setshow.exp
parent3780c3370815a315927580bcd22ce5e361cc9950 (diff)
downloadbinutils-gdb-28558bdb36be5186a20e17108bbace6628ee5934.tar.gz
* gdb.base/setshow.exp: Don't run the set prompt tests if
the board has gdb_prompt set.
Diffstat (limited to 'gdb/testsuite/gdb.base/setshow.exp')
-rw-r--r--gdb/testsuite/gdb.base/setshow.exp30
1 files changed, 16 insertions, 14 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp
index 25819ed9614..60736f3c33a 100644
--- a/gdb/testsuite/gdb.base/setshow.exp
+++ b/gdb/testsuite/gdb.base/setshow.exp
@@ -176,28 +176,30 @@ gdb_test "set listsize 100" "" "set listsize 100"
#test show listsize 100
gdb_test "show listsize" "Number of source lines gdb will list by default is 100..*" "show listsize (100)"
-#test set prompt (FooBarBaz)
-set newprompt "\\(FooBarBaz\\)"
-send_gdb "set prompt (FooBarBaz) \n"
-gdb_expect {
+if ![board_info target exists gdb_prompt] {
+ #test set prompt (FooBarBaz)
+ set newprompt "\\(FooBarBaz\\)"
+ send_gdb "set prompt (FooBarBaz) \n"
+ gdb_expect {
-re "$newprompt $" { pass "set prompt (FooBarBaz) " }
timeout { fail "(timeout) set prompt (FooBarBaz) " }
- }
+ }
-#test show prompt (FooBarBaz)
-send_gdb "show prompt\n"
-gdb_expect {
+ #test show prompt (FooBarBaz)
+ send_gdb "show prompt\n"
+ gdb_expect {
-re "Gdb's prompt is \"$newprompt \"..* $" \
- { pass "show prompt (FooBarBaz) " }
+ { pass "show prompt (FooBarBaz) " }
timeout { fail "(timeout) show prompt (FooBarBaz) " }
- }
+ }
-#test set prompt (gdb)
-send_gdb "set prompt (gdb) \n"
-gdb_expect {
+ #test set prompt (gdb)
+ send_gdb "set prompt (gdb) \n"
+ gdb_expect {
-re "$gdb_prompt $" { pass "set prompt (gdb) " }
timeout { fail "(timeout) set prompt (gdb) " }
- }
+ }
+}
#test set radix 11
gdb_test "set radix 11" "Unsupported output radix ``decimal 11''; output radix unchanged..*" "set radix 11"