Fix normalisation of TyCon representations
authorErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 24 Dec 2015 13:41:53 +0000 (14:41 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 24 Dec 2015 15:36:11 +0000 (16:36 +0100)
Test Plan: run tests on powerpc and x86_64

Reviewers: hvr, austin, thomie, bgamari

Reviewed By: thomie, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1694

testsuite/driver/testlib.py

index 33e134d..44eebd6 100644 (file)
@@ -1698,7 +1698,7 @@ def normalise_callstacks(str):
 
 def normalise_type_reps(str):
     """ Normalise out fingerprints from Typeable TyCon representations """
-    return re.sub(r'TyCon\s*\d+\#\#\s*\d+\#\#\s*',
+    return re.sub(r'TyCon\s*\d+L?\#\#\s*\d+L?\#\#\s*',
                   'TyCon FINGERPRINT FINGERPRINT ',
                   str,
                   flags=re.MULTILINE)