A patch to fix getNumberOfProcessors() on OS X

Austin Seipp mad.one at gmail.com
Tue Mar 17 22:35:19 EDT 2009


Hello,

I have a patch to fix the runtime system's getNumberOfProcessors()
function to work properly on OS X and detect the number of CPUs.

However, when I run validate, these are the final results:

OVERALL SUMMARY for test run started at Tue Mar 17 21:34:36 CDT 2009
    2318 total tests, which gave rise to
    8661 test cases, of which
       0 caused framework failures
    6662 were skipped

    1923 expected passes
      74 expected failures
       1 unexpected passes
       1 unexpected failures

Unexpected passes:
   hpc_ghc_ghci(normal)

Unexpected failures:
   break017(ghci)

-------------------------------------------------------------------
Oops!  Looks like you have some unexpected test results or framework
failures.
Please fix them before pushing/sending patches.
-------------------------------------------------------------------


Is this to be expected, or has my patch really broke something?

The patch is attached.

Austin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx_nproc.dpatch
Type: application/octet-stream
Size: 193337 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/cvs-ghc/attachments/20090318/5b2c26c8/osx_nproc.obj


More information about the Cvs-ghc mailing list