[commit: ghc] master: Testsuite: normalise slashes in callstack output (89324b8)
git at git.haskell.org
git at git.haskell.org
Sat Sep 12 13:26:19 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/89324b82edaf5e02807617bffb5cf24c1d7a37af/ghc
>---------------------------------------------------------------
commit 89324b82edaf5e02807617bffb5cf24c1d7a37af
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Sat Sep 12 15:23:12 2015 +0200
Testsuite: normalise slashes in callstack output
This fixes some tests on Windows, for example T2120.
>---------------------------------------------------------------
89324b82edaf5e02807617bffb5cf24c1d7a37af
testsuite/driver/testlib.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 6b3426e..1700392 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1681,10 +1681,12 @@ def normalise_whitespace( str ):
return str.strip()
def normalise_callstacks(str):
+ def repl(matches):
+ location = matches.group(1)
+ location = normalise_slashes_(location)
+ return ', called at {}:<line>:<column> in'.format(location)
# Ignore line number differences in call stacks (#10834).
- return re.sub(', called at (.+):[\\d]+:[\\d]+ in',
- ', called at \\1:<line>:<column> in',
- str)
+ return re.sub(', called at (.+):[\\d]+:[\\d]+ in', repl, str)
def normalise_errmsg( str ):
# remove " error:" and lower-case " Warning:" to make patch for
More information about the ghc-commits
mailing list