summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 8d71d1de46..d776c12bb3 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2221,6 +2221,12 @@ def normalise_errmsg(s: str) -> str:
# collisions, so we need to normalise that to just "ghc"
s = re.sub('ghc-stage[123]', 'ghc', s)
+ # On windows error messages can mention versioned executables
+ s = re.sub('ghc-[0-9.]+', 'ghc', s)
+ s = re.sub('runghc-[0-9.]+', 'runghc', s)
+ s = re.sub('hpc-[0-9.]+', 'hpc', s)
+ s = re.sub('ghc-pkg-[0-9.]+', 'ghc-pkg', s)
+
# Error messages sometimes contain ghc-bignum implementation package
s = re.sub('ghc-bignum-[0-9.]+', 'ghc-bignum-<VERSION>', s)