#1829: Fix test case outofmem for PPC Mac OS X
----------------------------+-----------------------------------------------
    Reporter:  thorkilnaur  |       Owner:          
        Type:  bug          |      Status:  new     
    Priority:  normal       |   Milestone:          
   Component:  Test Suite   |     Version:  6.8.1   
    Severity:  normal       |    Keywords:          
  Difficulty:  Unknown      |    Testcase:  outofmem
Architecture:  powerpc      |          Os:  MacOS X 
----------------------------+-----------------------------------------------
 Running validate on my PPC Mac OS X has for some time reported
 {{{
 Unexpected failures:
    arrow(normal)
    arrowrun003(normal)
    divbyzero(normal)
    outofmem(normal)
 }}}
 with detailed report for outofmem(normal)
 {{{
 =====> outofmem(normal)cd ./rts &&
 '/Users/thorkilnaur/tn/GHCDarcsRepository/ghc-HEAD-complete-for-pulling-
 and-copying-20070713_1212/ghc/compiler/stage2/ghc-inplace' -no-recomp
 -dcore-lint -dcmm-lint -Dpowerpc_apple_darwin  -o outofmem outofmem.hs
 >outofmem.comp.stderr 2>&1
 cd ./rts && ./outofmem    </dev/null >outofmem.run.stdout
 2>outofmem.run.stderr
 Actual stderr output differs from expected:
 --- ./rts/outofmem.stderr.normalised    2007-11-04 16:09:33.000000000
 +0100
 +++ ./rts/outofmem.run.stderr.normalised        2007-11-04
 16:09:33.000000000 +0100
 @@ -1 +1 @@
 -outofmem: out of memory
 +outofmem: memory allocation failed (requested 1074790400 bytes)
 *** unexpected failure for outofmem(normal)
 }}}
 This is clearly a simple case of an error message that differs in a non-
 essential way. The attached patch supplies a specific stderr output file
 for powerpc_apple_darwin to fix this problem. With this change, validate
 reports
 {{{
 OVERALL SUMMARY for test run started at Sun Nov  4 19:25:15 CET 2007
     1988 total tests, which gave rise to
     7591 test cases, of which
        0 caused framework failures
     5932 were skipped

     1582 expected passes
       74 expected failures
        0 unexpected passes
        3 unexpected failures

 Unexpected failures:
    arrow(normal)
    arrowrun003(normal)
    divbyzero(normal)
 }}}
 so at least, no harm seems to be done by this patch.

 Best regards
 Thorkil

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1829>
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

Reply via email to