HUnit 1.2.0.0 on 6.8.1 vs 1.1.1 on 6.6.1

On Windows, HUnit's assertions are not working - trace below in ghci 6.8.1and 6.6.1. Can others reproduce? Is this the right place to report bugs? Should I confirm a bug here and then create a ticket, create a ticket and that's it, or just mention it here and someone else creates a ticket? GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done.
:m Test.HUnit "abc" @=? "efg" Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown)
___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base ... linking ... done.
:m Test.HUnit "abc" @=? "efg" Loading package HUnit-1.1.1 ... linking ... done. *** Exception: user error (HUnit:expected: "abc" but got: "efg")
Thanks, Greg

On Wed, Nov 21, 2007 at 11:13:26AM -0800, Greg Fitzgerald wrote:
On Windows, HUnit's assertions are not working - trace below in ghci 6.8.1and 6.6.1. Can others reproduce? Is this the right place to report bugs? Should I confirm a bug here and then create a ticket, create a ticket and that's it, or just mention it here and someone else creates a ticket?
GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done.
:m Test.HUnit "abc" @=? "efg" Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown)
/ /_\// /_/ / / | | GHC Interactive, version 6.6.1, for Haskell 98.
"abc" @=? "efg" Loading package HUnit-1.1.1 ... linking ... done. *** Exception: user error (HUnit:expected: "abc" but got: "efg")
This is caused by a change in the HUnit library, from assertFailure msg = ioError (userError (hunitPrefix ++ msg)) to assertFailure msg = E.throwDyn (HUnitFailure msg) We don't really have a good answer for where non-bootlib library bugs should go at the moment. I don't know if Dean uses the sourceforge bug tracker or not. Thanks Ian

"abc" @=? "efg" Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown)
On Dec 3, 2007 7:23 AM, Ian Lynagh
This is caused by a change in the HUnit library, from assertFailure msg = ioError (userError (hunitPrefix ++ msg)) to assertFailure msg = E.throwDyn (HUnitFailure msg)
We don't really have a good answer for where non-bootlib library bugs should go at the moment. I don't know if Dean uses the sourceforge bug tracker or not.
Could this change be reverted for 6.8.2? HUnit is mostly useless in its current state. Thanks, Greg

Hi Greg, On Fri, Dec 07, 2007 at 02:04:24PM -0800, Greg Fitzgerald wrote:
"abc" @=? "efg" Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown)
On Dec 3, 2007 7:23 AM, Ian Lynagh
wrote: This is caused by a change in the HUnit library, from assertFailure msg = ioError (userError (hunitPrefix ++ msg)) to assertFailure msg = E.throwDyn (HUnitFailure msg)
We don't really have a good answer for where non-bootlib library bugs should go at the moment. I don't know if Dean uses the sourceforge bug tracker or not.
Could this change be reverted for 6.8.2? HUnit is mostly useless in its current state.
HUnit is not part of GHC, and can be installed and upgraded separately. For convenience, some binary distributions, installers and the extralibs tarball do include it. They just use the latest version in the darcs repositories at the time that they are built, so if it is fixed in the HUnit repo before 6.8.2 is built then the fix will be in the bindists etc. The HUnit cabal file lists Dean Herington as the author, but without giving an e-mail address for him. Thanks Ian
participants (3)
-
David Benbennick
-
Greg Fitzgerald
-
Ian Lynagh