The heap overflow in GHC 9.8 (actually starting with 9.6) is correct. Earlier GHC 9.4 can be seen to use the same amount of memory, but is not correctly handling the RTS -M flag. So I have removed the GHC version check and slightly increased the maximum heap for the two tests which actually use more heap (but not as much as the one test which is expected fail, which needs more than 400M).
The heap overflow in GHC 9.8 (actually starting with 9.6) is correct. Earlier GHC 9.4 can be seen to use the same amount of memory, but is not correctly handling the RTS -M flag. So I have removed the GHC version check and slightly increased the maximum heap for the two tests which actually use more heap (but not as much as the one test which is expected fail, which needs more than 400M).