Skip to content

Path to TOP not escaped correctly when creating Config.hs in annrun01 test

The annrun01 test creates a Haskell file containing (as a Haskell literal) the path to the lib directory.

Unfortunately, it doesn't currently perform escaping on that string when splicing it into the Haskell file, so if the path contains backslashes (i.e. on Windows) the test fails to compile.

The attached patch uses Python to escape the string in a way which works on both Unix and Windows.

Trac metadata
Trac field Value
Version 6.13
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Test Suite
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information