testsuite: fix T23540 fragility on 32-bit platforms
T23540 is fragile on 32-bit platforms. The root cause is usage of `getEvidenceTreesAtPoint`, which internally relies on `Name`'s `Ord` instance, which is indeterministic. The solution is adding a deterministic `Ord` instance for `EvidenceInfo` and sorting the evidence trees before pretty printing. Fixes #24449.
Showing
- compiler/GHC/Iface/Ext/Utils.hs 7 additions, 1 deletioncompiler/GHC/Iface/Ext/Utils.hs
- testsuite/tests/hiefile/should_run/T23540.stdout 22 additions, 21 deletionstestsuite/tests/hiefile/should_run/T23540.stdout
- testsuite/tests/hiefile/should_run/TestUtils.hs 4 additions, 3 deletionstestsuite/tests/hiefile/should_run/TestUtils.hs
- testsuite/tests/hiefile/should_run/all.T 1 addition, 1 deletiontestsuite/tests/hiefile/should_run/all.T
Loading