hClose002 for ghci hangs on Mac OS X
I'm on OS X 10.7.5
ghc : ade1ae97ed52c493ec415c1601dace39b64071dd testsuite : 743cab5865ae0b9820dadc33a692511e0e467b9b base : b3387abfbc94b69e977c232386acad4dde7597e8
hClose002 fails with these three ways:
$ make TESTS=hClose002 # ... snip ... Unexpected failures: ../../libraries/base/tests/IO hClose002 [bad exit code] (ghci,threaded1,threaded2)
The test opens a file in !WriteMode, closes it "without telling the IO library", then hCloses it twice. Then it does that again in !ReadMode. Thus there are four hClose calls in total. It is the third one that hangs.