Fix bug in gdb.ada/bias.exp
authorTom Tromey <tromey@adacore.com>
Tue, 10 Nov 2020 17:06:08 +0000 (10:06 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 10 Nov 2020 17:06:08 +0000 (10:06 -0700)
commit95016fd211b66445cb3b9e86aeb8b6951f56315f
tree85a0b870706fb76f3667b97e2c076f1e20e9dea0
parent83100a74a542bc2fa99387f518712ec0ef408a4b
Fix bug in gdb.ada/bias.exp

While working on a different bug in the Ada support, I found that the
gdb.ada/bias.exp test is slightly incorrect.  In particular, it is
using a range type, which it then overflows during an operation.

This patch changes the test so that the computed values remain in
range.

gdb/testsuite/ChangeLog
2020-11-10  Tom Tromey  <tromey@adacore.com>

* gdb.ada/bias.exp: Update.
* gdb.ada/bias/bias.adb (X): Change value.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/bias.exp
gdb/testsuite/gdb.ada/bias/bias.adb