aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/all-bin.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/all-bin.exp')
-rw-r--r--gdb/testsuite/gdb.base/all-bin.exp14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/all-bin.exp b/gdb/testsuite/gdb.base/all-bin.exp
index d809db7..33594fd 100644
--- a/gdb/testsuite/gdb.base/all-bin.exp
+++ b/gdb/testsuite/gdb.base/all-bin.exp
@@ -189,10 +189,18 @@ send_gdb "print v_int+v_double\n"
gdb_expect {
-re ".*206.56565.*$gdb_prompt $" {
pass "print value of v_int+v_double"
- }
+ }
+ -re ".*206.565643.*$gdb_prompt $" {
+ # D10V has 4-byte doubles
+ if [istarget "d10v*-*"] then {
+ pass "print value of v_int+v_double (D10V)"
+ } else {
+ fail "print value of v_int+v_double (precision)"
+ }
+ }
-re ".*$gdb_prompt $" { fail "print value of v_int+v_double" }
- timeout { fail "(timeout) print value of v_int+" }
- }
+ timeout { fail "(timeout) print value of v_int+v_double" }
+}
#