Skip to content

Fix test case outofmem for PPC Mac OS 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

Trac metadata
Trac field Value
Version 6.8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Test Suite
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information