gdb/testsuite: Remove duplicates from gdb.base/dfp-exprs.exp
authorPedro Alves <pedro@palves.net>
Fri, 10 Dec 2021 22:41:54 +0000 (22:41 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:33 +0000 (22:43 +0000)
commitffd5d21ae272aba3efdee3d677050b69c09e6f16
tree23662f05c1e1588320f4bb8c64aee4dfd0e1992e
parent0988568e6af1e3bcfff37934c4482b5465947635
gdb/testsuite: Remove duplicates from gdb.base/dfp-exprs.exp

When I run the testsuite, I have:

    Running ../gdb/testsuite/gdb.base/dfp-exprs.exp ...
    DUPLICATE: gdb.base/dfp-exprs.exp: p 1.2dl < 1.3df

Replace hand-written tests checking various comparison operators between
various decimal floating point types with a loop to programmatically
generate all the combinations.  This removes the need to eyeball for all
suffixes, which lead to the original duplication.

Also add a lot more combinations, testing all comparison operators
comprehensively.  The result is 262 unique tests vs 104 before this
patch.

Tested on x86_86-linux.

Change-Id: Id215a3d610aa8e032bf06ee160b5e3aed4a92d1e
gdb/testsuite/gdb.base/dfp-exprs.exp