Subject: | Wrong SC_NPROCESSORS_ONLN value for FreeBSD |
The tests fail on FreeBSD systems:
isa check for "cores" failed: 200112 is not a reasonable number of cores! at /home/cpansand/.cpan/build/2016112406/App-OS-Detect-MachineCores-1.2.3-P9Wpin/t/../lib/App/OS/Detect/MachineCores.pm line 24.
It seems that SC_NPROCESSORS_ONLN is wrong: it should be 58 for $^O eq 'freebsd':
$ grep SC_NPROCESSORS_ONLN /usr/include/unistd.h
#define _SC_NPROCESSORS_ONLN 58
This looks reasonable:
$ perl -MPOSIX=sysconf -E 'say sysconf 58'
4