[commit: ghc] master: testsuite: Fix broken_without_gmp (e59439a)

git at git.haskell.org git at git.haskell.org
Sun Dec 23 06:36:30 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e59439af3222d151918ad1ad2a03942ce9e6a1ff/ghc

>---------------------------------------------------------------

commit e59439af3222d151918ad1ad2a03942ce9e6a1ff
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Dec 23 06:34:00 2018 +0000

    testsuite: Fix broken_without_gmp
    
    The lack of types made the previous failure silent, sadly. Improves
    situation of #16043.


>---------------------------------------------------------------

e59439af3222d151918ad1ad2a03942ce9e6a1ff
 testsuite/driver/testlib.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 1c6668d..f26f9e0 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -213,11 +213,6 @@ def record_broken(name, opts, bug):
     if not me in brokens:
         brokens.append(me)
 
-def broken_without_gmp(name, opts):
-    # Many tests sadly break with integer-simple due to GHCi's ignorance of it.
-    when(config.integer_backend != "integer-gmp",
-         expect_broken(16043))
-
 def _expect_pass(way):
     # Helper function. Not intended for use in .T files.
     opts = getTestOpts()
@@ -465,6 +460,10 @@ def have_gdb( ):
 def have_readelf( ):
     return config.have_readelf
 
+# Many tests sadly break with integer-simple due to GHCi's ignorance of it.
+broken_without_gmp = when(config.integer_backend != "integer-gmp",
+                          expect_broken(16043))
+
 # ---
 
 def high_memory_usage(name, opts):



More information about the ghc-commits mailing list