Report for Sys-CpuAffinity-1.10

Back
From: metabase:user:9c36dc84-a30f-11e0-a9fc-0a18abbd4f2f
Subject: FAIL Sys-CpuAffinity-1.10 v5.20.3 OpenBSD
Date: 2016-09-19T20:37:32Z

This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language.  See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org


--
Dear Marty O'Brien,

This is a computer-generated report for Sys-CpuAffinity-1.10
on perl 5.20.3, created by CPAN-Reporter-1.2018.

Thank you for uploading your work to CPAN.  However, there was a problem
testing your distribution.

If you think this report is invalid, please consult the CPAN Testers Wiki
for suggestions on how to avoid getting FAIL reports for missing library
or binary dependencies, unsupported operating systems, and so on:

http://wiki.cpantesters.org/wiki/CPANAuthorNotes

Sections of this report:

    * Tester comments
    * Program output
    * Prerequisites
    * Environment and other context

------------------------------
TESTER COMMENTS
------------------------------

Additional comments from tester:

this report is from an automated smoke testing program
and was not reviewed by a human for accuracy

------------------------------
PROGRAM OUTPUT
------------------------------

Output from './Build test':

# Testing Sys::CpuAffinity 1.10, Perl 5.020003, /home/bar/perl5/perlbrew/perls/perl-5.20.3/bin/perl, openbsd
t/00-load.t .......... ok


System configuration
====================
$^O = openbsd; $] = 5.020003
$ENV{AUTOMATED_TESTING} = 1
Defined XS functions:
	xs_fortytwo

module Win32::API: not available
module Win32::Process: not available
module BSD::Process::Affinity: not available
bindprocessor: not found
dmesg available at: /sbin/dmesg
sysctl available at: /usr/sbin/sysctl
psrinfo: not found
hinv: not found
hwprefs: not found
lsdev: not found
system_profiler: not found
prtconf: not found
taskset: not found
pbind: not found
cpuset: not found

t/02-available.t ..... ok

#   Failed test 'got current process affinity 0'
#   at t/10-exercise.t line 33.

#   Failed test 'simple setCpuAffinity returned non-zero'
#   at t/10-exercise.t line 43.

#   Failed test 'setCpuAffinity set affinity to 0 == 1 != 0'
#   at t/10-exercise.t line 46.

#   Failed test 'clear simple setCpuAffinity returned non-zero'
#   at t/10-exercise.t line 50.

#   Failed test 'bind to all processors successful 0 == 4-1'
#   at t/10-exercise.t line 53.

#   Failed test 'setAffinity(-1) returned non-zero'
#   at t/10-exercise.t line 80.

#   Failed test 'setAffinity(-1) binds to all processors'
#   at t/10-exercise.t line 83.
Sys::CpuAffinity: invalid mask 0 in call to setAffinty
 at t/10-exercise.t line 94.
Sys::CpuAffinity: mask 4 is not valid for system with 2 processors.
 at t/10-exercise.t line 95.

#   Failed test 'got pseudo-proc affinity 0'
#   at t/10-exercise.t line 144.
# $y3=0, child output [1] was: getAffinity:0

#   Failed test 'set pseudo-proc affinity non-zero result 0'
#   at t/10-exercise.t line 152.
# 1/1/<0>!=0,
# child output [2] was setAffinity:0

#   Failed test 'set pseudo-proc affinity to 2 == 0 != 0'
#   at t/10-exercise.t line 162.
# 1/<0>==2
# child output [3] was getAffinity2:0
# Looks like you failed 10 tests of 14.
t/10-exercise.t ...... 
Dubious, test returned 10 (wstat 2560, 0xa00)
Failed 10/14 subtests 
	(less 2 skipped subtests: 2 okay)


=================================================
Num processors =
    bindprocessor                  - 0 -
    dmesg_bsd                      Sys::CpuAffinity: dmesg_bsd[2] contains:
cpu0 at mainbus0: apid 0 (boot processor)
cpu1 at mainbus0: apid 1 (application processor)

- 2 -
    dmesg_solaris                  - 0 -
    ENV                            - 0 -
    hinv                           - 0 -
    hwprefs                        - 0 -
    lsdev                          - 0 -
    proc_cpuinfo                   - 0 -
    proc_stat                      - 0 -
    prtconf                        - 0 -
    psrinfo                        - 0 -
    sysctl                         Sys::CpuAffinity: Program sysctl is available in /usr/sbin/sysctl
Sys::CpuAffinity: sysctl output:
hw.ncpu=2

- 2 -
    system_profiler                - 0 -
    taskset                        - 0 -
    Test_Smoke_SysInfo             Sys::CpuAffinity: module Test::Smoke::SysInfo not available: Can't locate Test/Smoke/SysInfo.pm in @INC (you may need to install the Test::Smoke::SysInfo module) (@INC contains: blib/lib blib/arch /cpan_build/bar/Sys-CpuAffinity-1.10-0/blib/lib /cpan_build/bar/Sys-CpuAffinity-1.10-0/blib/arch /cpan_build/bar/Sys-CpuAffinity-1.10-0/_build/lib /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3/OpenBSD.amd64-openbsd /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3 /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/5.20.3/OpenBSD.amd64-openbsd /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/5.20.3 .) at (eval 9) line 2.

- 0 -
    Win32API_System_Info           - 0 -
    xs_cpusetGetCPUCount           - 0 -
    xs_solaris                     - 0 -
    xs_Win32API_System_Info        - 0 -


===============================================
Current affinity = 
    BSD_Process_Affinity           ==> 0
    cpuset                         ==> 0
    pbind                          ==> 0
    psaix                          ==> 0
    taskset                        ==> 0
    Win32API                       ==> 0
    Win32Process                   ==> 0
    xs_cpuset_getaffinity          ==> 0
    xs_DEBUG_sched_getaffinity     ==> 0
Use of uninitialized value $z in numeric gt (>) at t/11-exercise-all.t line 113.
    xs_irix_sysmp                  ==> 0
    xs_processor_affinity          ==> 0
    xs_pthread_self_getaffinity    ==> 0
    xs_sched_getaffinity           ==> 0
    xs_win32                       ==> 0


==========================================

The function 'Sys::CpuAffinity::getAffinity' does
not seem to work on this system.

OpenBSD does not provide (as far as I can tell)
a way to manipulate the CPU affinities of processes.


==========================================




==================================================
Set affinity =
   bindprocessor                  => no affinity ==> FAIL
   BSD_Process_Affinity           => no affinity ==> FAIL
   cpuset                         => no affinity ==> FAIL
   pbind                          => no affinity ==> FAIL
   taskset                        => no affinity ==> FAIL
   Win32API                       => no affinity ==> FAIL
   Win32Process                   => no affinity ==> FAIL
   xs_cpuset_setaffinity          => no affinity ==> FAIL
   xs_irix_sysmp                  => no affinity ==> FAIL
   xs_processor_affinity          => no affinity ==> FAIL
   xs_pthread_self_setaffinity    => no affinity ==> FAIL
   xs_sched_setaffinity           => no affinity ==> FAIL
   xs_win32                       => no affinity ==> FAIL


==========================================

The function 'Sys::CpuAffinity::setAffinity' does
not seem to work on this system.

OpenBSD does not provide (as far as I can tell)
a way to manipulate the CPU affinities of processes.


==========================================




t/11-exercise-all.t .. ok
# This system has 2 cpus. Spoofing Sys::CpuAffinity::getNumCpus() to return 32

#   Failed test 'got affinity 0'
#   at t/12-32cpus.t line 44.

#   Failed test 'set affinity ok on 32-cpu system 0 != 0'
#   at t/12-32cpus.t line 47.

#   Failed test 'got affinity 0 == 2'
#   at t/12-32cpus.t line 50.

#   Failed test 'clear affinity probably ok on 32-cpu system 0 != 0'
#   at t/12-32cpus.t line 53.

#   Failed test 'got affinity 0 == 3'
#   at t/12-32cpus.t line 59.
# Looks like you failed 5 tests of 6.
t/12-32cpus.t ........ 
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/6 subtests 

Test Summary Report
-------------------
t/10-exercise.t    (Wstat: 2560 Tests: 14 Failed: 10)
  Failed tests:  2-6, 9-10, 12-14
  Non-zero exit status: 10
t/12-32cpus.t      (Wstat: 1280 Tests: 6 Failed: 5)
  Failed tests:  2-6
  Non-zero exit status: 5
Files=5, Tests=24,  5 wallclock secs ( 0.02 usr  0.08 sys +  0.66 cusr  0.49 csys =  1.25 CPU)
Result: FAIL
Failed 2/5 test programs. 15/24 subtests failed.

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

build_requires:

    Module             Need Have    
    ------------------ ---- --------
    Module::Build      0.25 0.4220  
    Test::More         0    1.302056

configure_requires:

    Module             Need Have    
    ------------------ ---- --------
    Module::Build      0.42 0.4220  

opt_requires:

    Module             Need Have    
    ------------------ ---- --------
    ExtUtils::CBuilder 0.15 0.280224


------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

    AUTOMATED_TESTING = 1
    PATH = /home/bar/bin:/home/bar/perl5/perlbrew/bin:/home/bar/perl5/perlbrew/perls/perl-5.20.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
    PERL5LIB = 
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 20707
    PERL5_CPAN_IS_RUNNING = 20707
    PERL5_CPAN_IS_RUNNING_IN_RECURSION = 8951,20707
    PERLBREW_BASHRC_VERSION = 0.76
    PERLBREW_HOME = /home/bar/.perlbrew
    PERLBREW_MANPATH = /home/bar/perl5/perlbrew/perls/perl-5.20.3/man
    PERLBREW_PATH = /home/bar/perl5/perlbrew/bin:/home/bar/perl5/perlbrew/perls/perl-5.20.3/bin
    PERLBREW_PERL = perl-5.20.3
    PERLBREW_ROOT = /home/bar/perl5/perlbrew
    PERLBREW_VERSION = 0.76
    PERL_CR_SMOKER_CURRENT = Sys-CpuAffinity-1.10
    PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
    PERL_MM_USE_DEFAULT = 1
    SHELL = /usr/local/bin/bash
    TERM = vt220

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = /home/bar/perl5/perlbrew/perls/perl-5.20.3/bin/perl
    $UID/$EUID = 1002 / 1002
    $GID = 1002 1002
    $EGID = 1002 1002

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.14    
    CPAN::Meta          2.150010
    Cwd                 3.62    
    ExtUtils::CBuilder  0.280224
    ExtUtils::Command   7.24    
    ExtUtils::Install   1.67    
    ExtUtils::MakeMaker 7.24    
    ExtUtils::Manifest  1.70    
    ExtUtils::ParseXS   3.24    
    File::Spec          3.62    
    JSON                2.90    
    JSON::PP            2.27400 
    Module::Build       0.4220  
    Module::Signature   n/a     
    Parse::CPAN::Meta   2.150010
    Test::Harness       3.36    
    Test::More          1.302056
    YAML                1.18    
    YAML::Syck          1.29    
    version             0.9917  


--

Summary of my perl5 (revision 5 version 20 subversion 3) configuration:
   
  Platform:
    osname=openbsd, osvers=5.9, archname=OpenBSD.amd64-openbsd
    uname='openbsd baiacu.spo.virtua.com.br 5.9 generic.mp#1888 amd64 '
    config_args='-de -Dprefix=/home/bar/perl5/perlbrew/perls/perl-5.20.3 -Aeval:scriptdir=/home/bar/perl5/perlbrew/perls/perl-5.20.3/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 20070719 ', gccosandvers='openbsd5.9'
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lpthread -lm -lutil -lc
    perllibs=-lpthread -lm -lutil -lc
    libc=/usr/lib/libc.so.84.2, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC  -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Locally applied patches:
	Devel::PatchPerl 1.38
  Built under openbsd
  Compiled at Sep 12 2016 22:30:16
  %ENV:
    PERL5LIB=""
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="20707"
    PERL5_CPAN_IS_RUNNING="20707"
    PERL5_CPAN_IS_RUNNING_IN_RECURSION="8951,20707"
    PERLBREW_BASHRC_VERSION="0.76"
    PERLBREW_HOME="/home/bar/.perlbrew"
    PERLBREW_MANPATH="/home/bar/perl5/perlbrew/perls/perl-5.20.3/man"
    PERLBREW_PATH="/home/bar/perl5/perlbrew/bin:/home/bar/perl5/perlbrew/perls/perl-5.20.3/bin"
    PERLBREW_PERL="perl-5.20.3"
    PERLBREW_ROOT="/home/bar/perl5/perlbrew"
    PERLBREW_VERSION="0.76"
    PERL_CR_SMOKER_CURRENT="Sys-CpuAffinity-1.10"
    PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
    PERL_MM_USE_DEFAULT="1"
  @INC:
    /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3/OpenBSD.amd64-openbsd
    /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3
    /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/5.20.3/OpenBSD.amd64-openbsd
    /home/bar/perl5/perlbrew/perls/perl-5.20.3/lib/5.20.3
    .