diff --git a/cabal-testsuite/src/Test/Cabal/Monad.hs b/cabal-testsuite/src/Test/Cabal/Monad.hs index 93207511ea34046e09189f8be3dc2cf4db57669b..7b9aa9de9a7f748d178e56a1d850b50a346b3d3a 100644 --- a/cabal-testsuite/src/Test/Cabal/Monad.hs +++ b/cabal-testsuite/src/Test/Cabal/Monad.hs @@ -346,7 +346,7 @@ runTestM mode m = withSystemTempDirectory "cabal-testsuite" $ \tmp_dir -> do where cleanup = do env <- getTestEnv - onlyIfExists . removeDirectoryRecursive $ testWorkDir env + onlyIfExists . removeDirectoryRecursiveHack $ testWorkDir env -- NB: it's important to initialize this ourselves, as -- the default configuration hardcodes Hackage, which we do -- NOT want to assume for these tests (no test should