aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-12-14 16:37:58 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-01-18 14:10:26 +0100
commita2908a6f31ea480b2236ff62d76157b2f01ed5b7 (patch)
treeb4c2ec6690bbd4c2ad69f7b505e1fa4561e4c03e /tests
parent39c135e5d5710459827f0d40861512c13eeb1ae7 (diff)
Clean up
Diffstat (limited to 'tests')
-rw-r--r--tests/GhcSession.hs15
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs
index f679751..0896780 100644
--- a/tests/GhcSession.hs
+++ b/tests/GhcSession.hs
@@ -32,10 +32,10 @@ main = do
topdir <- getCurrentDirectory
res <- mapM (setup topdir test) $ case args of
[] -> [
- -- ("tests/exelib" , parseVer "1.10")
- -- , ("tests/exeintlib", parseVer "2.0")
- -- , ("tests/fliblib" , parseVer "2.0")
- ("tests/bkpregex" , parseVer "2.0")
+ ("tests/exelib" , parseVer "1.10")
+ , ("tests/exeintlib", parseVer "2.0")
+ , ("tests/fliblib" , parseVer "2.0")
+ , ("tests/bkpregex" , parseVer "2.0")
]
xs -> map (,parseVer "0") xs
@@ -70,12 +70,7 @@ setup topdir act (srcdir, min_cabal_ver) = do
putStrLn $ "Skipping test '" ++ srcdir ++ "' because " ++ reason ++ "."
return []
Nothing -> do
- -- withSystemTempDirectory "cabal-helper.ghc-session.test" $ \dir -> do
- let dir = "/tmp/xxxx"
- e <- doesDirectoryExist dir
- when e $ removeDirectoryRecursive dir
- createDirectoryIfMissing True dir
- do
+ withSystemTempDirectory "cabal-helper.ghc-session.test" $ \dir -> do
setCurrentDirectory $ topdir </> srcdir
run "cabal" [ "sdist", "--output-dir", dir ]