summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2014-08-29 19:06:14 +0300
committerSergei Trofimovich <slyfox@gentoo.org>2014-08-30 01:47:44 +0300
commit985e367948a33a4a50629ea9d2523317f2311a3b (patch)
treebfaf283d9f52681260218b77a2cc70c6d097af6b /testsuite/driver/testlib.py
parenteac8728691db95085d0530b748388de0f8f5732b (diff)
downloadhaskell-985e367948a33a4a50629ea9d2523317f2311a3b.tar.gz
testsuite: normalise integer library name for T8958
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 9a6951b6e5..e3562f7c54 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1596,10 +1596,8 @@ def normalise_errmsg( str ):
# The inplace ghc's are called ghc-stage[123] to avoid filename
# collisions, so we need to normalise that to just "ghc"
str = re.sub('ghc-stage[123]', 'ghc', str)
- # We sometimes see the name of the integer-gmp package on stderr,
- # but this can change (either the implementation name or the
- # version number), so we canonicalise it here
- str = re.sub('integer-[a-z]+', 'integer-impl', str)
+ # Error messages simetimes contain integer implementation package
+ str = re.sub('integer-(gmp|simple)-[0-9.]+', 'integer-<IMPL>-<VERSION>', str)
return str
# normalise a .prof file, so that we can reasonably compare it against