Re: [GHC] #476: HUnit treats failures as errors

2010-04-25 Thread GHC
#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: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #476: HUnit treats failures as errors

2009-11-22 Thread GHC
#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   |  
+---
Changes (by igloo):

  * status:  new => closed
  * failure:  => None/Unknown
  * resolution:  None => invalid

Comment:

 HUnit is no longer distributed with GHC, so I'm closing this ticket.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #476: HUnit treats failures as errors

2008-06-25 Thread GHC
#476: HUnit treats failures as errors
---+
 Reporter:  stefanheimann  |  Owner:  RichardG
 Type:  bug| Status:  new 
 Priority:  normal |  Milestone:  Not GHC 
Component:  libraries (other)  |Version:  6.4.1   
 Severity:  normal | Resolution:  None
 Keywords:  hunit  | Difficulty:  Unknown 
 Testcase: |   Architecture:  Unknown 
   Os:  Unknown|  
---+
Changes (by RichardG):

  * status:  assigned => new
  * owner:  nobody => RichardG

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #476: HUnit treats failures as errors

2007-03-16 Thread GHC
#476: HUnit treats failures as errors
---+
 Reporter:  stefanheimann  |  Owner:  nobody  
 Type:  bug| Status:  assigned
 Priority:  normal |  Milestone:  Not GHC 
Component:  libraries (other)  |Version:  6.4.1   
 Severity:  normal | Resolution:  None
 Keywords:  hunit  | Difficulty:  Unknown 
 Testcase: |   Architecture:  Unknown 
   Os:  Unknown|  
---+
Changes (by AlecBerryman):

  * keywords:  => hunit

Comment:

 It is still broken on Debian's haskell-hunit 1.1-3.

 Sample ghci session:
 {{{
 *Main> :m +Test.HUnit
 *Main Test.HUnit>  let f = TestCase (assertBool "foo" True)
 Loading package HUnit-1.1 ... linking ... done.
 *Main Test.HUnit> runTestTT f
 Cases: 1  Tried: 1  Errors: 0  Failures: 0
 Counts {cases = 1, tried = 1, errors = 0, failures = 0}
 *Main Test.HUnit> let g = TestCase (assertBool "foo" False)
 *Main Test.HUnit> runTestTT g
 ### Error:
 user error (HUnit:foo)
 Cases: 1  Tried: 1  Errors: 1  Failures: 0
 Counts {cases = 1, tried = 1, errors = 1, failures = 0}
 }}}

 Test 'f' should succeed, and it does.  Test 'g' should fail, but instead
 returns an error.

 I have not tested the patch.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #476: HUnit treats failures as errors

2007-01-23 Thread GHC
#476: HUnit treats failures as errors
---+
 Reporter:  stefanheimann  |  Owner:  nobody  
 Type:  bug| Status:  assigned
 Priority:  normal |  Milestone:  Not GHC 
Component:  libraries (other)  |Version:  6.4.1   
 Severity:  normal | Resolution:  None
 Keywords: | Difficulty:  Unknown 
 Testcase: |   Architecture:  Unknown 
   Os:  Unknown|  
---+
Changes (by igloo):

  * milestone:  => Not GHC
  * testcase:  =>

Comment:

 I haven't checked to see if this is still broken.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #476: HUnit treats failures as errors

2006-01-13 Thread GHC
#476: HUnit treats failures as errors
+---
  Reporter:  stefanheimann  |  Owner:  nobody  
  Type:  bug| Status:  assigned
  Priority:  normal |  Milestone:  
 Component:  libraries (other)  |Version:  6.4.1   
  Severity:  normal | Resolution:  None
  Keywords: | Os:  Unknown 
Difficulty:  Unknown|   Architecture:  Unknown 
+---
Changes (by simonmar):

  * architecture:  => Unknown
  * difficulty:  => Unknown
  * version:  None => 6.4.1
  * os:  => Unknown

Old description:

> {{{
> HUnit treats a failure in a testcase as an error. I
> attached a patch that fixes the problem. I tested the
> patch with ghc and hugs.
>
> }}}

New description:

 {{{
 HUnit treats a failure in a testcase as an error. I
 attached a patch that fixes the problem. I tested the
 patch with ghc and hugs.

 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs