[Hackage] #843: 'cabal test' crashes on Windows

Hackage cvs-ghc at haskell.org
Tue May 17 17:02:56 CEST 2011

#843: 'cabal test' crashes on Windows
  Reporter:  ttuegel        |        Owner:  ttuegel 
      Type:  defect         |       Status:  new     
  Priority:  normal         |    Milestone:          
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:          
Difficulty:  unknown        |   Ghcversion:          
  Platform:  Windows        |  
 Cabal crashes with the following error on Windows Vista and 7 (I have not
 tried XP):

 Running 1 test suites...
 Test suite tests: RUNNING...
 Test suite tests: PASS
 Test suite logged to: dist\test\foo-0.1-tests.log
 cabal: permission denied

 The "permission denied" error appears to be from an attempt to delete a
 temporary file while it is still open. This does not appear to cause
 problems on Unix, but Windows won't allow it. I believe it is due to the
 fact that the temporary log file is read lazily, so it doesn't get closed
 before the file is deleted.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/843>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list