#5046: test derefnull fails on OS X
---------------------------------+------------------------------------------
    Reporter:  gwright           |       Owner:  gwright   
        Type:  bug               |      Status:  new       
    Priority:  normal            |   Component:  Test Suite
     Version:  7.0.2             |    Keywords:            
    Testcase:                    |   Blockedby:            
          Os:  MacOS X           |    Blocking:            
Architecture:  Unknown/Multiple  |     Failure:  Other     
---------------------------------+------------------------------------------
 On OS X, the `derefnull` test fails because the test driver expects an
 exit code of 138 (SIGBUS) but the program exits with 139 (SIGSEGV).  This
 is probably some relic of the early days of OS X, when access to pagezero
 gave a bus error instead of a segfault.

 The behavior is now consistent with linux.  The attached patch changes
 `all.T` to reflect this.

 With this change, running the `derefnull` test gives:
 {{{

 OVERALL SUMMARY for test run started at Thu Mar 24 16:34:38 EDT 2011
     2710 total tests, which gave rise to
    10140 test cases, of which
        0 caused framework failures
    10133 were skipped

        7 expected passes
        0 expected failures
        0 unexpected passes
        0 unexpected failures
 }}}

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