#3961: HUnit has erroneous behavior when compiled with Cabal
-------------------------+--------------------------------------------------
Reporter: RichardG | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords:
Os: MacOS X | Testcase:
Architecture: x86 | Failure: None/Unknown
-------------------------+--------------------------------------------------
Comment(by RichardG):
I've attached a somewhat simplified test case (it's HUnit with a bunch of
stuff ripped out). The {{{tests/SimpleTest.hs}}} file has 3 tests in it
which compare the expected and actual results of a failed assert. These
are:
{{{
expectProblem Failure 0 "test" (TestCase $ assertFailure "test"),
expectProblem Failure 0 "test" (test $ assertFailure "test"),
expectProblem Failure 0 "test" ((TestCase . (>>= assert)) $ (assertFailure
"test"))
}}}
The first test gives the expected result. The second and third tests
display the same erroneous behavior that is described in the original
report (i.e., it behaves incorrectly only when compiled with GHC 6.12.1
and Cabal).
(The third test in the list is the second test where {{{test}}} has been
replaced with, what I assume are, the appropriate functions.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3961#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs