summaryrefslogtreecommitdiff
path: root/tests/Roundtrip.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Roundtrip.hs')
-rw-r--r--tests/Roundtrip.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Roundtrip.hs b/tests/Roundtrip.hs
index ffab633..e16ac8b 100644
--- a/tests/Roundtrip.hs
+++ b/tests/Roundtrip.hs
@@ -13,7 +13,7 @@ import System.Environment
import System.Exit
import System.FilePath
import System.IO
-import System.IO.Temp
+-- import System.IO.Temp
import Test.Common
import Test.CommonUtils
import Test.HUnit
@@ -31,6 +31,7 @@ verb = Debug
writeCPP :: FilePath -> IO ()
writeCPP fp = appendFileFlush cppFile (('\n' : fp))
+writeError :: FilePath -> IO ()
writeError = writeCPP
writeParseFail :: FilePath -> String -> IO ()
@@ -62,6 +63,7 @@ appendFileFlush f txt = withFile f AppendMode (\ hdl -> hPutStr hdl txt >> hFlus
-- ---------------------------------------------------------------------
+readFileIfPresent :: FilePath -> IO [String]
readFileIfPresent fileName = do
isPresent <- doesFileExist fileName
if isPresent
@@ -100,7 +102,7 @@ main = do
!parseFailList <- lines <$> readFile parseFailFile
let done = S.fromList (processedList ++ cppList ++ blackList ++ knownFailures ++ parseFailList)
tsts <- TestList <$> mapM (tests done) ds
- runTests tsts
+ _ <- runTests tsts
return ()
runTests :: Test -> IO Counts