Skip Menu |

This queue is for tickets about the Algorithm-CurveFit CPAN distribution.

Report information
The Basics
Id: 121352
Status: open
Priority: 0/
Queue: Algorithm-CurveFit

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.05
Fixed in: (no value)



Subject: t/02bad_deriv.t fails on Debian/stretch
On my Debian/stretch smoker I see the following failure: ... # Failed test at t/02bad_deriv.t line 50. # Looks like you failed 1 test of 13. t/02bad_deriv.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/13 subtests ... Tests pass on older Debian systems (jessie, wheezy).
From: ppisar [...] redhat.com
Dne Po 24.dub.2017 13:06:22, SREZIC napsal(a): Show quoted text
> On my Debian/stretch smoker I see the following failure: > > ... > # Failed test at t/02bad_deriv.t line 50. > # Looks like you failed 1 test of 13. > t/02bad_deriv.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/13 subtests > ... > > Tests pass on older Debian systems (jessie, wheezy).
How is your perl built? Especially do the linker flags contain "-pie" option? I run into similar failure with the option <https://bugzilla.redhat.com/show_bug.cgi?id=1242769#c4>.
RT-Send-CC: ppisar [...] redhat.com
On 2017-05-23 12:18:45, ppisar wrote: Show quoted text
> Dne Po 24.dub.2017 13:06:22, SREZIC napsal(a):
> > On my Debian/stretch smoker I see the following failure: > > > > ... > > # Failed test at t/02bad_deriv.t line 50. > > # Looks like you failed 1 test of 13. > > t/02bad_deriv.t .. > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/13 subtests > > ... > > > > Tests pass on older Debian systems (jessie, wheezy).
> > How is your perl built? Especially do the linker flags contain "-pie" > option? I run into similar failure with the option > <https://bugzilla.redhat.com/show_bug.cgi?id=1242769#c4>.
It does not seem so. Here's an excerpt from perl -V (perl-5.27.9): Linker and Libraries: ld='cc' ldflags =' -fstack-protector-strong -L/usr/local/lib' libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=libc-2.24.so so=so useshrplib=false libperl=libperl.a gnulibc_version='2.24' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags='-Wl,-E' cccdlflags='-fPIC' lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
On 2017-04-24 13:06:22, SREZIC wrote: Show quoted text
> On my Debian/stretch smoker I see the following failure: > > ... > # Failed test at t/02bad_deriv.t line 50. > # Looks like you failed 1 test of 13. > t/02bad_deriv.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/13 subtests > ... > > Tests pass on older Debian systems (jessie, wheezy).
It also fails on Ubuntu 18.04 (bionic).
On 2017-04-24 13:06:22, SREZIC wrote: Show quoted text
> On my Debian/stretch smoker I see the following failure: > > ... > # Failed test at t/02bad_deriv.t line 50. > # Looks like you failed 1 test of 13. > t/02bad_deriv.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/13 subtests > ... > > Tests pass on older Debian systems (jessie, wheezy).
If the failing test is rewritten to use cmp_ok instead of ok: diff --git a/t/02bad_deriv.t b/t/02bad_deriv.t index dfa613e..b5ec5ed 100644 --- a/t/02bad_deriv.t +++ b/t/02bad_deriv.t @@ -47,7 +47,7 @@ my @eps = (1.00, 0.10, 1.000, 0.100); foreach my $par (0..$#parameters) { my $v = $parameters[$par][1]; ok(defined $v); - ok($v + $eps[$par] > $val[$par]); - ok($v - $eps[$par] < $val[$par]); + cmp_ok($v + $eps[$par], ">", $val[$par]); + cmp_ok($v - $eps[$par], "<", $val[$par]); } then the test suite fails with a little more diagnostics: t/02bad_deriv.t .. 1/13 # Failed test at t/02bad_deriv.t line 50. # '5' # > # '5.15' # Looks like you failed 1 test of 13. t/02bad_deriv.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/13 subtests