From: Tom Tromey Date: Tue, 1 Aug 2023 14:33:42 +0000 (-0600) Subject: Avoid failures in fixed_points.exp with older GCC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86bb2d76c901a558e5b2dd29df95874ce6e78dae;p=binutils-gdb.git Avoid failures in fixed_points.exp with older GCC Tom de Vries pointed out that my recent change to fixed_points.exp failed with older versions of GCC. This patch fixes the problem by skipping the new test in this situation. --- diff --git a/gdb/testsuite/gdb.ada/fixed_points.exp b/gdb/testsuite/gdb.ada/fixed_points.exp index 2edc63f4071..1c5719a59d2 100644 --- a/gdb/testsuite/gdb.ada/fixed_points.exp +++ b/gdb/testsuite/gdb.ada/fixed_points.exp @@ -92,6 +92,9 @@ foreach_with_prefix scenario {all minimal} { gdb_test "print fp5_var" " = 3e-19" } - gdb_test "p Float(Another_Fixed) = Float(Another_Delta * 5)" "true" \ - "value of another_fixed" + # This failed before GCC 10. + if {$scenario == "all" && [test_compiler_info {gcc-10-*}]} { + gdb_test "p Float(Another_Fixed) = Float(Another_Delta * 5)" "true" \ + "value of another_fixed" + } }