Commit 0ac1ea3c authored by Simon Marlow's avatar Simon Marlow
Browse files

normalise slashes in error messages

Fixes various Windows test failures (T3103, plugins04)
parent def631cb
......@@ -1505,6 +1505,8 @@ def normalise_errmsg( str ):
# hacky solution is used in place of more sophisticated filename
# mangling
str = re.sub('([^\\s])\\.exe', '\\1', str)
# normalise slashes, minimise Windows/Unix filename differences
str = re.sub('\\\\', '/', str)
# The inplace ghc's are called ghc-bin-stage[123] to avoid filename
# collisions, so we need to normalise that to just "ghc"
# (this is for the old build system, I think, so should be removable)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment