aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-08-01 08:33:42 -0600
committerTom Tromey <tromey@adacore.com>2023-08-02 10:13:02 -0600
commit86bb2d76c901a558e5b2dd29df95874ce6e78dae (patch)
tree0f0bd52c97d4d72ce67291de58f12164c63d624d /gdb
parentb5c37946cce4b41af0436529b139fa3d23e61f73 (diff)
downloadbinutils-86bb2d76c901a558e5b2dd29df95874ce6e78dae.zip
binutils-86bb2d76c901a558e5b2dd29df95874ce6e78dae.tar.gz
binutils-86bb2d76c901a558e5b2dd29df95874ce6e78dae.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.ada/fixed_points.exp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/fixed_points.exp b/gdb/testsuite/gdb.ada/fixed_points.exp
index 2edc63f..1c5719a 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"
+ }
}