Subject: | t/30-current_exec.t fails under FreeBSD |
Running t/30-current_exec.t fails under FreeBSD:
not ok 3 - Found the same file via PATH and full path
# Failed test 'Found the same file via PATH and full path'
# at t/30-current_exec.t line 52.
# got: '0 =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UE
yx0/t/test-10.exec
# PAR_PROGNAME =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UEyx0/
t/test-10.exec
# PAR_TEMP =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UEyx0/t-tm
p/par-eserte/cache-5b62cd9780d0c3b33c900b2bbb35ba6cace9dcb7
# exec =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UEyx0/t-tmp/pa
r-eserte/cache-5b62cd9780d0c3b33c900b2bbb35ba6cace9dcb7/test-10.exec
# '
# expected: '0 =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UE
yx0/t/test-10.exec
# PAR_PROGNAME =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UEyx0/
t/test-10.exec
# PAR_TEMP =
/mnt/i386/usr/local/src/CPAN/new.build/PAR-Packer-0.977-1UEyx0/t-tm
p/par-eserte/cache-5b62cd9780d0c3b33c900b2bbb35ba6cace9dcb7
# exec = unknown
# '
# Please wait
The problem is that /proc/curproc/file may point to unknown in some
circumstances. This is an old known problem under FreeBSD, see
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern%2F35703&cat=
Note the last sentence: "FreeBSD's procfs is deprecated."
So the test should either be skipped on FreeBSD, or if "exec = unknown"
is returned by the test program, then this test result should be ignored.
Regards,
Slaven