Update expected results in long_long.exp
authorTom Tromey <tromey@adacore.com>
Fri, 3 Mar 2023 15:05:41 +0000 (08:05 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 3 Mar 2023 15:05:41 +0000 (08:05 -0700)
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

index 357f7cc806303fb2f6aa32e562d0fe490d177e3a..3e72d69ece98def71b30dca81fbad9efc4918072 100644 (file)
@@ -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"