#476: HUnit treats failures as errors
--------------------------------+-------------------------------------------
  Reporter:  stefanheimann      |          Owner:  RichardG        
      Type:  bug                |         Status:  closed          
  Priority:  normal             |      Milestone:  Not GHC         
 Component:  libraries (other)  |        Version:  6.4.1           
Resolution:  invalid            |       Keywords:  hunit           
Difficulty:  Unknown            |             Os:  Unknown/Multiple
  Testcase:                     |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown       |          Patch:  0               
--------------------------------+-------------------------------------------
Changes (by RichardG):

  * patch:  => 0


Comment:

 Tested HUnit 1.2.2.1 on Mac OS X 10.6 with GHC 6.12.1 (Haskell Platform
 2010.1); did not encounter issue.  Appears to be working as expected.

 {{{
 Prelude> import Test.HUnit
 Prelude Test.HUnit> let f = TestCase (assertBool "foo" True)
 Loading package HUnit-1.2.2.1 ... linking ... done.
 Prelude Test.HUnit> runTestTT f
 Cases: 1  Tried: 1  Errors: 0  Failures: 0
 Counts {cases = 1, tried = 1, errors = 0, failures = 0}
 Prelude Test.HUnit> let g = TestCase (assertBool "foo" False)
 Prelude Test.HUnit> runTestTT g
 ### Failure:
 foo
 Cases: 1  Tried: 1  Errors: 0  Failures: 1
 Counts {cases = 1, tried = 1, errors = 0, failures = 1}
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/476#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to