Skip Menu |

This queue is for tickets about the Quiq CPAN distribution.

Report information
The Basics
Id: 132660
Status: resolved
Priority: 0/
Queue: Quiq

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

Bug Information
Severity: (no value)
Broken in: 1.181
Fixed in: 1.183



Subject: t/bin/Quiq/Gd/Font.t fails on FreeBSD 13
The test suite fails on FreeBSD 13: ... # Failed test at t/bin/Quiq/Gd/Font.t line 216. # got: '24' # expected: '27' or '28' # Failed test at t/bin/Quiq/Gd/Font.t line 245. # got: '15' # expected: '14', '16' or '18' # Failed test at t/bin/Quiq/Gd/Font.t line 274. # Looks like you failed 3 tests of 59. t/bin/Quiq/Gd/Font.t ............................ Dubious, test returned 3 (wstat 768, 0x300) Failed 3/59 subtests ... This does not happen with other FreeBSD versions (e.g. 12) or Linux systems (Debian, CentOS ...)
On 2020-05-20 01:14:20, SREZIC wrote: Show quoted text
> The test suite fails on FreeBSD 13: > > ... > # Failed test at t/bin/Quiq/Gd/Font.t line 216. > # got: '24' > # expected: '27' or '28' > > # Failed test at t/bin/Quiq/Gd/Font.t line 245. > # got: '15' > # expected: '14', '16' or '18' > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > # Looks like you failed 3 tests of 59. > t/bin/Quiq/Gd/Font.t ............................ > Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/59 subtests > ... > > This does not happen with other FreeBSD versions (e.g. 12) or Linux > systems (Debian, CentOS ...)
With Quiq-1.182 the failure looks different: ... # Failed test at t/bin/Quiq/Gd/Font.t line 274. # Looks like you failed 1 test of 59. t/bin/Quiq/Gd/Font.t ............................ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/59 subtests ...
On Wed May 20 12:21:28 2020, SREZIC wrote: Show quoted text
> On 2020-05-20 01:14:20, SREZIC wrote:
> > The test suite fails on FreeBSD 13: > > > > ... > > # Failed test at t/bin/Quiq/Gd/Font.t line 216. > > # got: '24' > > # expected: '27' or '28' > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 245. > > # got: '15' > > # expected: '14', '16' or '18' > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > > # Looks like you failed 3 tests of 59. > > t/bin/Quiq/Gd/Font.t ............................ > > Dubious, test returned 3 (wstat 768, 0x300) > > Failed 3/59 subtests > > ... > > > > This does not happen with other FreeBSD versions (e.g. 12) or Linux > > systems (Debian, CentOS ...)
> > With Quiq-1.182 the failure looks different: > > ... > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > # Looks like you failed 1 test of 59. > t/bin/Quiq/Gd/Font.t ............................ > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/59 subtests > ...
Oh, I missed to correct this failure. Could you tell me what the value of $fnt->digitHeight at this code position is? Regards Frank
On 2020-05-20 13:20:01, FSEITZ wrote: Show quoted text
> On Wed May 20 12:21:28 2020, SREZIC wrote:
> > On 2020-05-20 01:14:20, SREZIC wrote:
> > > The test suite fails on FreeBSD 13: > > > > > > ... > > > # Failed test at t/bin/Quiq/Gd/Font.t line 216. > > > # got: '24' > > > # expected: '27' or '28' > > > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 245. > > > # got: '15' > > > # expected: '14', '16' or '18' > > > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > > > # Looks like you failed 3 tests of 59. > > > t/bin/Quiq/Gd/Font.t ............................ > > > Dubious, test returned 3 (wstat 768, 0x300) > > > Failed 3/59 subtests > > > ... > > > > > > This does not happen with other FreeBSD versions (e.g. 12) or Linux > > > systems (Debian, CentOS ...)
> > > > With Quiq-1.182 the failure looks different: > > > > ... > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > > # Looks like you failed 1 test of 59. > > t/bin/Quiq/Gd/Font.t ............................ > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/59 subtests > > ...
> > Oh, I missed to correct this failure. > Could you tell me what the value of $fnt->digitHeight > at this code position is?
After this change in the test script: diff --git a/t/bin/Quiq/Gd/Font.t b/t/bin/Quiq/Gd/Font.t index d01ed24..f7860d7 100755 --- a/t/bin/Quiq/Gd/Font.t +++ b/t/bin/Quiq/Gd/Font.t @@ -271,7 +271,7 @@ sub test_digitHeight_ttf : Test(1) { my $fnt = $self->get('ttFont'); # auf vostro 20, auf kopc02 21 - $self->ok($fnt->digitHeight >= 20); + $self->cmpOk($fnt->digitHeight, ">=", 20); } sub test_digitHeight_gd : Test(5) { I got the following: ... not ok 54 # Failed test at t/bin/Quiq/Gd/Font.t line 274. # '19' # >= # '20' ...
On Fri May 22 04:41:12 2020, SREZIC wrote: Show quoted text
> On 2020-05-20 13:20:01, FSEITZ wrote:
> > On Wed May 20 12:21:28 2020, SREZIC wrote:
> > > On 2020-05-20 01:14:20, SREZIC wrote:
> > > > The test suite fails on FreeBSD 13: > > > > > > > > ... > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 216. > > > > # got: '24' > > > > # expected: '27' or '28' > > > > > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 245. > > > > # got: '15' > > > > # expected: '14', '16' or '18' > > > > > > > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > > > > # Looks like you failed 3 tests of 59. > > > > t/bin/Quiq/Gd/Font.t ............................ > > > > Dubious, test returned 3 (wstat 768, 0x300) > > > > Failed 3/59 subtests > > > > ... > > > > > > > > This does not happen with other FreeBSD versions (e.g. 12) or Linux > > > > systems (Debian, CentOS ...)
> > > > > > With Quiq-1.182 the failure looks different: > > > > > > ... > > > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > > > # Looks like you failed 1 test of 59. > > > t/bin/Quiq/Gd/Font.t ............................ > > > Dubious, test returned 1 (wstat 256, 0x100) > > > Failed 1/59 subtests > > > ...
> > > > Oh, I missed to correct this failure. > > Could you tell me what the value of $fnt->digitHeight > > at this code position is?
> > After this change in the test script: > > diff --git a/t/bin/Quiq/Gd/Font.t b/t/bin/Quiq/Gd/Font.t > index d01ed24..f7860d7 100755 > --- a/t/bin/Quiq/Gd/Font.t > +++ b/t/bin/Quiq/Gd/Font.t > @@ -271,7 +271,7 @@ sub test_digitHeight_ttf : Test(1) { > > my $fnt = $self->get('ttFont'); > # auf vostro 20, auf kopc02 21 > - $self->ok($fnt->digitHeight >= 20); > + $self->cmpOk($fnt->digitHeight, ">=", 20); > } > > sub test_digitHeight_gd : Test(5) { > > > I got the following: > > ... > not ok 54 > # Failed test at t/bin/Quiq/Gd/Font.t line 274. > # '19' > # >= > # '20' > ...
Thank you very much for the info, cmpOk() is the better test method. The problem should be fixed in version 1.183. Regards Frank
Problem fixed.