Ticket #3961 (closed bug: fixed)
-O results in incorrect behavior
| Reported by: | RichardG | Owned by: | simonpj |
|---|---|---|---|
| Priority: | high | Milestone: | 7.0.1 |
| Component: | Compiler | Version: | 6.12.1 |
| Keywords: | Cc: | richardg@… | |
| Operating System: | MacOS X | Architecture: | x86 |
| Type of failure: | Incorrect result at runtime | Difficulty: | |
| Test Case: | Blocked By: | #3959 | |
| Blocking: | Related Tickets: |
Description
HUnit 1.2.2.1 ships with a set of unit tests. Incorrect behavior occurs when these tests are compiled into a program using Cabal and GHC 6.12.1 (Haskell Platform 2010.1).
Correct behavior occurs when these tests are:
- compiled using ghc --make using GHC 6.12.1.
- run using GHCi 6.12.1.
- compiled into a program using Cabal and GHC 6.10.4 (Haskell Platform 2009.2).
- compiled using ghc --make using GHC 6.10.4.
- run using GHCi 6.10.4.
This behavior appears to involve interactions between the Testable and Assertable classes and instances in Test/HUnit/Base.hs. This affects the correctness of the programs.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

