From 86bb2d76c901a558e5b2dd29df95874ce6e78dae Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 1 Aug 2023 08:33:42 -0600 Subject: [PATCH] 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. --- gdb/testsuite/gdb.ada/fixed_points.exp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" + } } -- 2.30.2