[commit: ghc] ghc-8.2: array: Clear up inconsistency in T9220 output (dc71bfe)

git at git.haskell.org git at git.haskell.org
Mon Apr 3 02:38:38 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/dc71bfe088f003d5a66010a13cf4d4b7b7f88700/ghc

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

commit dc71bfe088f003d5a66010a13cf4d4b7b7f88700
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Apr 2 13:04:26 2017 -0400

    array: Clear up inconsistency in T9220 output
    
    ghc-8.2 and master disagreed on the order of the instances. Normalise this
    difference away.
    
    Updates array submodule.
    
    (cherry picked from commit 60307cb85abc8d53845598a430c0ee9264fb2d82)


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

dc71bfe088f003d5a66010a13cf4d4b7b7f88700
 libraries/array             | 2 +-
 testsuite/driver/testlib.py | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/libraries/array b/libraries/array
index 3a77ef5..db07d53 160000
--- a/libraries/array
+++ b/libraries/array
@@ -1 +1 @@
-Subproject commit 3a77ef51f0f3292a9a0bea25c5954e2e3f61521d
+Subproject commit db07d534feb267d5f81e1301f6a0cb726c4c2ea2
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 7dedb33..a5da1e9 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -493,6 +493,13 @@ def no_check_hp(name, opts):
 
 # ----
 
+def filter_stdout_lines( regex ):
+    """ Filter lines of stdout with the given regular expression """
+    import re
+    def f( name, opts ):
+        _normalise_fun(name, opts, lambda s: '\n'.join(re.findall(regex, s)))
+    return f
+
 def normalise_slashes( name, opts ):
     _normalise_fun(name, opts, normalise_slashes_)
 



More information about the ghc-commits mailing list