diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-14 19:54:52 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-14 19:54:52 +0000 |
commit | 23232785769a0dda5a73aa9e17a2ebb7d95277a0 (patch) | |
tree | f7a16f6ef1f0d29645e8bbb8d47270c467eff650 | |
parent | d00da316227c26bad857998d0398a23917ee0a7b (diff) | |
download | pandoc-23232785769a0dda5a73aa9e17a2ebb7d95277a0.tar.gz |
Modified RunTests.hs to strip out '\r' so it will work on Windows.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1412 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r-- | tests/RunTests.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/RunTests.hs b/tests/RunTests.hs index b0961a390..16ee30f7f 100644 --- a/tests/RunTests.hs +++ b/tests/RunTests.hs @@ -106,8 +106,9 @@ runTest testname opts inp norm = do ec <- waitForProcess ph result <- if ec == ExitSuccess then do - outputContents <- readFile outputPath - normContents <- readFile normPath + -- filter \r so the tests will work on Windows machines + outputContents <- readFile outputPath >>= return . filter (/='r') + normContents <- readFile normPath >>= return . filter (/='r') if outputContents == normContents then return TestPassed else return $ TestFailed $ getDiff (lines outputContents) (lines normContents) |