2002-05-23 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 23 May 2002 21:20:53 +0000 (21:20 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 23 May 2002 21:20:53 +0000 (21:20 +0000)
* gdb.base/all-bin.exp: Revise previous patch by just reducing
the precision of the floating point test results.
* gdb.base/call-rt-st.exp: Ditto.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/all-bin.exp
gdb/testsuite/gdb.base/call-rt-st.exp

index f4abde4fbe8c860df4033dcf3202ec456719964a..74359dde5b85ababbf63ca01d8e6c2ecf8f0d8b2 100644 (file)
@@ -1,5 +1,9 @@
 2002-05-23  Michael Snyder  <msnyder@redhat.com>
 
+       * gdb.base/all-bin.exp: Revise previous patch by just reducing 
+       the precision of the floating point test results.
+       * gdb.base/call-rt-st.exp: Ditto.
+
        * gdb.base/all-bin.exp: Allow for reduced floating point precision.
        * gdb.base/call-rt-st.exp: Ditto.
 
index 33594fdca9339072bce69c55e6cec2995bb0a927..fe6b7558e4cab0ba994232db1ad0183e5d1a36f6 100644 (file)
@@ -187,17 +187,9 @@ gdb_expect {
 
 send_gdb "print v_int+v_double\n"
 gdb_expect {
-    -re ".*206.56565.*$gdb_prompt $" {
+    -re ".*206.565.*$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+v_double" }
 }
index 0386aa1df9632d7c393372796380e724ada8f707..fb63913c9844df15deccefa11870bd261e746398 100644 (file)
@@ -175,14 +175,8 @@ if ![gdb_skip_stdio_test "print print_one_large_struct(...)"] {
 
 if {![gdb_skip_float_test "print print_one_double(*d1)"] && \
         ![gdb_skip_stdio_test "print print_one_double(*d1)"] } {
-    if [istarget "d10v*-*"] then {
-       # D10V has 4-byte doubles
-       print_struct_call "print_one_double(*d1)" \
-               ".*Contents of one_double_t:\[ \r\n\]+1\\.111110\[ \r\n\]+.\[0-9\]+ = \\{double1 = 1\\.11110997\\}"
-    } else {
-       print_struct_call "print_one_double(*d1)" \
-               ".*Contents of one_double_t:\[ \r\n\]+1\\.111110\[ \r\n\]+.\[0-9\]+ = \\{double1 = 1\\.11111\\}"
-    }
+    print_struct_call "print_one_double(*d1)" \
+           ".*Contents of one_double_t:\[ \r\n\]+1\\.111110\[ \r\n\]+.\[0-9\]+ = \\{double1 = 1\\.111\[0-9\]*\}"
 }
 
 if {![gdb_skip_float_test "print print_two_floats(*f3)"] && \