[pushed] Update expected results in long_long.exp

Message ID 20230303150634.2439050-1-tromey@adacore.com
State Committed
Commit c35b7b2252323a1afa561ef2d56f5ae1b63b667a
Headers
Series [pushed] Update expected results in long_long.exp |

Commit Message

Tom Tromey March 3, 2023, 3:06 p.m. UTC
  Simon pointed out that the recent patch to add half-float support to
'x/f' caused a couple of regressions in long_long.exp.  This patch
fixes these by updating the expected results.
---
 gdb/testsuite/gdb.base/long_long.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/testsuite/gdb.base/long_long.exp b/gdb/testsuite/gdb.base/long_long.exp
index 357f7cc8063..3e72d69ece9 100644
--- a/gdb/testsuite/gdb.base/long_long.exp
+++ b/gdb/testsuite/gdb.base/long_long.exp
@@ -176,7 +176,7 @@  gdb_test_short "p/u *(short *)s" "" "291" ""
 gdb_test_short "p/o *(short *)s" "" "0443" ""
 gdb_test_short "p/t *(short *)s" "" "100100011" ""
 gdb_test_short "p/a *(short *)s" "" "0x123( <.*>)?" ""
-gdb_test_short "p/f *(short *)s" "" "291" ""
+gdb_test_short "p/f *(short *)s" "" "1.7345e-0?5" ""
 gdb_test_short "p/c *(short *)s" "" "35 '.'" ""
 
 gdb_test_int "p/x *(int *)i" "" "0x123" "0x1234567" ""
@@ -256,7 +256,7 @@  gdb_test "x/2ho h" "0443.*0123456"
 gdb_test "x/2ht h" "0000000100100011.*1010011100101110"
 gdb_test_ptr "x/2ha h" "" ""  "0x123.*0xffffa72e" "0x123.*0xffffffffffffa72e"
 gdb_test "x/2hc h" "35 '.'.*46 '.'"
-gdb_test "x/2hf h" "291.*-22738"
+gdb_test "x/2hf h" "1.7345e-0?5.*-0.028046"
 
 gdb_test "x/2wx w" "0x01234567.*0xa72ee539"
 gdb_test "x/2wd w" "19088743.*-1490098887"