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.
This commit is contained in:
parent
b5c37946cc
commit
86bb2d76c9
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user