Scalar::List::Utils fail on HP-UX 11.11

--Sig_/RgWUtLX4pNOM=pxH4Gajg4.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Scalar-List-Utils-1.53

t/uniq.t .............. 1/33 Argument "++" isn't numeric in subroutine
entry at t/uniq.t line 115. Argument "?" isn't numeric in subroutine
entry at t/uniq.t line 115.

#   Failed test 'uniqnum preserves uniqness of full integer range (stringif=
ied)'
#   at t/uniq.t line 115.
#     Structures begin differing at:
#          $got->[4] =3D '9223372036854775807'
#     $expected->[4] =3D '?'
# Looks like you failed 1 test of 33.
t/uniq.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/33 subtests

This is perl 5, version 14, subversion 2 (v5.14.2) built for PA-RISC2.0-LP64


--=20
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

--Sig_/RgWUtLX4pNOM=pxH4Gajg4.
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEGolmczWuFi3lJEbAA6FHoT5dwJgFAl3GqRcACgkQA6FHoT5d
wJhQswf+Kr20HReNM11GVRGq/Hu+CoI5vjWRjAkvLKXkHhBX7GtJ0NSuNPe20oa5
SmXUoYlEGLHx2fY8F8Z1wZlZpEA4UwUrBxODNwEZOZmWWyL84DefyLkiWo3IqlDK
m7f52dzUH7iC33u3OVtvrZl1EiK9NKR7Ea12WaJVsT7CJZsxCftSuqf4bE+klNQv
tb0gXqI6CzW7sMB1S7Fq1yY+5xf+XACZ0TSwaRICvetxPA3luicncPQHMLQ18jBb
64nmtEoixkTS6xOwBZOA9ktURys37fZUIfF+/MbrEYQ0DMIK1ckmybebasRc0ynD
KC2fI159ZEJcf6JoUm+ObMhutABNRg==
=Wr5x
-----END PGP SIGNATURE-----

--Sig_/RgWUtLX4pNOM=pxH4Gajg4.--
0
h
11/9/2019 11:55:02 AM
perl.perl5.porters 47867 articles. 1 followers. Follow

2 Replies
11 Views

Similar Articles

[PageSpeed] 28

--0000000000007bbbaf0596f360fa
Content-Type: text/plain; charset="UTF-8"

The same test fails on MS Windows for perl versions prior to 5.22.
The test assumes that Inf and NaN will stringify to a string that numifies
back to Inf and (respectively) NaN values, but windows doesn't do that on
those older versions of perl.
There, Infs and Nans stringify to a string that numifies to either 1 or -1,
which breaks the test.
(With later versions of perl on Windows, stringification of Inf and Nan is
as the test expects, and the test then runs successfully.)

I suspect something similar might be happening on Tux's system.

The version of t/uniq.t provided by
https://github.com/Dual-Life/Scalar-List-Utils/pull/80 "fixes" the issue
(for Windows only) by simply skipping that test on affected versions of
perl.
This amended version of t/uniq.t (which also addresses other problems) can
be seen at:
https://github.com/sisyphus/Scalar-List-Utils/blob/master/t/uniq.t


On Sat, Nov 9, 2019 at 10:55 PM H.Merijn Brand <h.m.brand@xs4all.nl> wrote:

> Scalar-List-Utils-1.53
>
> t/uniq.t .............. 1/33 Argument "++" isn't numeric in subroutine
> entry at t/uniq.t line 115. Argument "?" isn't numeric in subroutine
> entry at t/uniq.t line 115.
>
> #   Failed test 'uniqnum preserves uniqness of full integer range
> (stringified)'
> #   at t/uniq.t line 115.
> #     Structures begin differing at:
> #          $got->[4] = '9223372036854775807'
> #     $expected->[4] = '?'
> # Looks like you failed 1 test of 33.
> t/uniq.t .............. Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/33 subtests
>
> This is perl 5, version 14, subversion 2 (v5.14.2) built for
> PA-RISC2.0-LP64
>
>
> --
> H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
> using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
> https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
> http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
>

--0000000000007bbbaf0596f360fa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>The same test fails on MS Windows for perl versions p=
rior to 5.22.</div><div>The test assumes that Inf and NaN will stringify to=
 a string that numifies back to Inf and (respectively) NaN values, but wind=
ows doesn&#39;t do that on those older versions of perl.</div><div>There, I=
nfs and Nans stringify to a string that numifies to either 1 or -1, which b=
reaks the test.</div><div>(With later versions of perl on Windows, stringif=
ication of Inf and Nan is as the test expects, and the test then runs succe=
ssfully.)</div><div><br></div><div>I suspect something similar might be hap=
pening on Tux&#39;s system.</div><div><br></div><div>The version of t/uniq.=
t provided by <a href=3D"https://github.com/Dual-Life/Scalar-List-Utils/pul=
l/80">https://github.com/Dual-Life/Scalar-List-Utils/pull/80</a> &quot;fixe=
s&quot; the issue (for Windows only) by simply skipping that test on affect=
ed versions of perl.</div><div>This amended version of t/uniq.t (which also=
 addresses other problems) can be seen at:</div><div><a href=3D"https://git=
hub.com/sisyphus/Scalar-List-Utils/blob/master/t/uniq.t">https://github.com=
/sisyphus/Scalar-List-Utils/blob/master/t/uniq.t</a> </div><div>=C2=A0<br><=
/div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a=
ttr">On Sat, Nov 9, 2019 at 10:55 PM H.Merijn Brand &lt;<a href=3D"mailto:h=
..m.brand@xs4all.nl">h.m.brand@xs4all.nl</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex">Scalar-List-Utils-1.53<br>
<br>
t/uniq.t .............. 1/33 Argument &quot;++&quot; isn&#39;t numeric in s=
ubroutine<br>
entry at t/uniq.t line 115. Argument &quot;?&quot; isn&#39;t numeric in sub=
routine<br>
entry at t/uniq.t line 115.<br>
<br>
#=C2=A0 =C2=A0Failed test &#39;uniqnum preserves uniqness of full integer r=
ange (stringified)&#39;<br>
#=C2=A0 =C2=A0at t/uniq.t line 115.<br>
#=C2=A0 =C2=A0 =C2=A0Structures begin differing at:<br>
#=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $got-&gt;[4] =3D &#39;92233720368547758=
07&#39;<br>
#=C2=A0 =C2=A0 =C2=A0$expected-&gt;[4] =3D &#39;?&#39;<br>
# Looks like you failed 1 test of 33.<br>
t/uniq.t .............. Dubious, test returned 1 (wstat 256, 0x100)<br>
Failed 1/33 subtests<br>
<br>
This is perl 5, version 14, subversion 2 (v5.14.2) built for PA-RISC2.0-LP6=
4<br>
<br>
<br>
-- <br>
H.Merijn Brand=C2=A0 <a href=3D"http://tux.nl" rel=3D"noreferrer" target=3D=
"_blank">http://tux.nl</a>=C2=A0 =C2=A0Perl Monger=C2=A0 <a href=3D"http://=
amsterdam.pm.org/" rel=3D"noreferrer" target=3D"_blank">http://amsterdam.pm=
..org/</a><br>
using perl5.00307 .. 5.31=C2=A0 =C2=A0 =C2=A0 porting perl5 on HP-UX, AIX, =
and Linux<br>
<a href=3D"https://useplaintext.email" rel=3D"noreferrer" target=3D"_blank"=
>https://useplaintext.email</a>=C2=A0 <a href=3D"https://tux.nl" rel=3D"nor=
eferrer" target=3D"_blank">https://tux.nl</a>=C2=A0 <a href=3D"http://www.t=
est-smoke.org" rel=3D"noreferrer" target=3D"_blank">http://www.test-smoke.o=
rg</a><br>
<a href=3D"http://qa.perl.org" rel=3D"noreferrer" target=3D"_blank">http://=
qa.perl.org</a>=C2=A0 =C2=A0<a href=3D"http://www.goldmark.org/jeff/stupid-=
disclaimers/" rel=3D"noreferrer" target=3D"_blank">http://www.goldmark.org/=
jeff/stupid-disclaimers/</a><br>
</blockquote></div>

--0000000000007bbbaf0596f360fa--
0
sisyphus359
11/10/2019 12:48:30 AM
--00000000000060c5ef0596f8d23c
Content-Type: multipart/alternative; boundary="00000000000060c5ed0596f8d23a"

--00000000000060c5ed0596f8d23a
Content-Type: text/plain; charset="UTF-8"

Simple demo of the problem is attached (infnan.txt).
On perls where there's no problem with the test you'll get output of:

+Inf won't break the test
-Inf won't break the test
NaN won't break the test

On those older Win32 perls where the test fails, I get output of:

Argument "1.#INF" isn't numeric in addition (+) at infnan.txt line 8.
Argument "-1.#INF" isn't numeric in addition (+) at infnan.txt line 9.
Argument "-1.#IND" isn't numeric in addition (+) at infnan.txt line 10.
Problem: '1.#INF' ne '1'
Problem: '-1.#INF' ne '-1'
Problem: '-1.#IND' ne '-1'



On Sun, Nov 10, 2019 at 11:48 AM sisyphus <sisyphus359@gmail.com> wrote:

> The same test fails on MS Windows for perl versions prior to 5.22.
> The test assumes that Inf and NaN will stringify to a string that numifies
> back to Inf and (respectively) NaN values, but windows doesn't do that on
> those older versions of perl.
> There, Infs and Nans stringify to a string that numifies to either 1 or
> -1, which breaks the test.
> (With later versions of perl on Windows, stringification of Inf and Nan is
> as the test expects, and the test then runs successfully.)
>
> I suspect something similar might be happening on Tux's system.
>
> The version of t/uniq.t provided by
> https://github.com/Dual-Life/Scalar-List-Utils/pull/80 "fixes" the issue
> (for Windows only) by simply skipping that test on affected versions of
> perl.
> This amended version of t/uniq.t (which also addresses other problems) can
> be seen at:
> https://github.com/sisyphus/Scalar-List-Utils/blob/master/t/uniq.t
>
>
> On Sat, Nov 9, 2019 at 10:55 PM H.Merijn Brand <h.m.brand@xs4all.nl>
> wrote:
>
>> Scalar-List-Utils-1.53
>>
>> t/uniq.t .............. 1/33 Argument "++" isn't numeric in subroutine
>> entry at t/uniq.t line 115. Argument "?" isn't numeric in subroutine
>> entry at t/uniq.t line 115.
>>
>> #   Failed test 'uniqnum preserves uniqness of full integer range
>> (stringified)'
>> #   at t/uniq.t line 115.
>> #     Structures begin differing at:
>> #          $got->[4] = '9223372036854775807'
>> #     $expected->[4] = '?'
>> # Looks like you failed 1 test of 33.
>> t/uniq.t .............. Dubious, test returned 1 (wstat 256, 0x100)
>> Failed 1/33 subtests
>>
>> This is perl 5, version 14, subversion 2 (v5.14.2) built for
>> PA-RISC2.0-LP64
>>
>>
>> --
>> H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
>> using perl5.00307 .. 5.31      porting perl5 on HP-UX, AIX, and Linux
>> https://useplaintext.email  https://tux.nl  http://www.test-smoke.org
>> http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
>>
>

--00000000000060c5ed0596f8d23a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Simple demo of the problem is attached (infnan.txt).<=
/div><div>On perls where there&#39;s no problem with the test you&#39;ll ge=
t output of:</div><div><br></div><div>+Inf won&#39;t break the test<br>-Inf=
 won&#39;t break the test<br>NaN won&#39;t break the test</div><div><br></d=
iv><div>On those older Win32 perls where the test fails, I get output of:</=
div><div><br></div><div>Argument &quot;1.#INF&quot; isn&#39;t numeric in ad=
dition (+) at infnan.txt line 8.<br>Argument &quot;-1.#INF&quot; isn&#39;t =
numeric in addition (+) at infnan.txt line 9.<br>Argument &quot;-1.#IND&quo=
t; isn&#39;t numeric in addition (+) at infnan.txt line 10.<br>Problem: &#3=
9;1.#INF&#39; ne &#39;1&#39;<br>Problem: &#39;-1.#INF&#39; ne &#39;-1&#39;<=
br>Problem: &#39;-1.#IND&#39; ne &#39;-1&#39;</div><div><br></div><div><br>=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Sun, Nov 10, 2019 at 11:48 AM sisyphus &lt;<a href=3D"mailto:sisyp=
hus359@gmail.com">sisyphus359@gmail.com</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>The same test =
fails on MS Windows for perl versions prior to 5.22.</div><div>The test ass=
umes that Inf and NaN will stringify to a string that numifies back to Inf =
and (respectively) NaN values, but windows doesn&#39;t do that on those old=
er versions of perl.</div><div>There, Infs and Nans stringify to a string t=
hat numifies to either 1 or -1, which breaks the test.</div><div>(With late=
r versions of perl on Windows, stringification of Inf and Nan is as the tes=
t expects, and the test then runs successfully.)</div><div><br></div><div>I=
 suspect something similar might be happening on Tux&#39;s system.</div><di=
v><br></div><div>The version of t/uniq.t provided by <a href=3D"https://git=
hub.com/Dual-Life/Scalar-List-Utils/pull/80" target=3D"_blank">https://gith=
ub.com/Dual-Life/Scalar-List-Utils/pull/80</a> &quot;fixes&quot; the issue =
(for Windows only) by simply skipping that test on affected versions of per=
l.</div><div>This amended version of t/uniq.t (which also addresses other p=
roblems) can be seen at:</div><div><a href=3D"https://github.com/sisyphus/S=
calar-List-Utils/blob/master/t/uniq.t" target=3D"_blank">https://github.com=
/sisyphus/Scalar-List-Utils/blob/master/t/uniq.t</a> </div><div>=C2=A0<br><=
/div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_a=
ttr">On Sat, Nov 9, 2019 at 10:55 PM H.Merijn Brand &lt;<a href=3D"mailto:h=
..m.brand@xs4all.nl" target=3D"_blank">h.m.brand@xs4all.nl</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">Scalar-List-Utils-=
1.53<br>
<br>
t/uniq.t .............. 1/33 Argument &quot;++&quot; isn&#39;t numeric in s=
ubroutine<br>
entry at t/uniq.t line 115. Argument &quot;?&quot; isn&#39;t numeric in sub=
routine<br>
entry at t/uniq.t line 115.<br>
<br>
#=C2=A0 =C2=A0Failed test &#39;uniqnum preserves uniqness of full integer r=
ange (stringified)&#39;<br>
#=C2=A0 =C2=A0at t/uniq.t line 115.<br>
#=C2=A0 =C2=A0 =C2=A0Structures begin differing at:<br>
#=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $got-&gt;[4] =3D &#39;92233720368547758=
07&#39;<br>
#=C2=A0 =C2=A0 =C2=A0$expected-&gt;[4] =3D &#39;?&#39;<br>
# Looks like you failed 1 test of 33.<br>
t/uniq.t .............. Dubious, test returned 1 (wstat 256, 0x100)<br>
Failed 1/33 subtests<br>
<br>
This is perl 5, version 14, subversion 2 (v5.14.2) built for PA-RISC2.0-LP6=
4<br>
<br>
<br>
-- <br>
H.Merijn Brand=C2=A0 <a href=3D"http://tux.nl" rel=3D"noreferrer" target=3D=
"_blank">http://tux.nl</a>=C2=A0 =C2=A0Perl Monger=C2=A0 <a href=3D"http://=
amsterdam.pm.org/" rel=3D"noreferrer" target=3D"_blank">http://amsterdam.pm=
..org/</a><br>
using perl5.00307 .. 5.31=C2=A0 =C2=A0 =C2=A0 porting perl5 on HP-UX, AIX, =
and Linux<br>
<a href=3D"https://useplaintext.email" rel=3D"noreferrer" target=3D"_blank"=
>https://useplaintext.email</a>=C2=A0 <a href=3D"https://tux.nl" rel=3D"nor=
eferrer" target=3D"_blank">https://tux.nl</a>=C2=A0 <a href=3D"http://www.t=
est-smoke.org" rel=3D"noreferrer" target=3D"_blank">http://www.test-smoke.o=
rg</a><br>
<a href=3D"http://qa.perl.org" rel=3D"noreferrer" target=3D"_blank">http://=
qa.perl.org</a>=C2=A0 =C2=A0<a href=3D"http://www.goldmark.org/jeff/stupid-=
disclaimers/" rel=3D"noreferrer" target=3D"_blank">http://www.goldmark.org/=
jeff/stupid-disclaimers/</a><br>
</blockquote></div>
</blockquote></div>

--00000000000060c5ed0596f8d23a--
--00000000000060c5ef0596f8d23c
Content-Type: text/plain; charset="US-ASCII"; name="infnan.txt"
Content-Disposition: attachment; filename="infnan.txt"
Content-Transfer-Encoding: base64
Content-ID: <f_k2snsfth0>
X-Attachment-Id: f_k2snsfth0

dXNlIHN0cmljdDsNCnVzZSB3YXJuaW5nczsNCg0KbXkgJHBpbmYgPSA5OSAqKiAoOTkgKiogOTkp
OyAjIFNob3VsZCBiZSArSW5mDQpteSAkbmluZiA9IC0kcGluZjsgICAgICAgICAgICMgU2hvdWxk
IGJlIC1JbmYNCm15ICRuYW4gID0gJHBpbmYgLyAkcGluZjsgICAgIyBTaG91bGQgYmUgTmFODQoN
Cm15ICRwaW5mX2NoZWNrID0gIiRwaW5mIiArIDA7DQpteSAkbmluZl9jaGVjayA9ICIkbmluZiIg
KyAwOw0KbXkgJG5hbl9jaGVjayAgPSAiJG5hbiIgICsgMDsNCg0KaWYoIiRwaW5mIiBlcSAiJHBp
bmZfY2hlY2siKSB7DQogICBwcmludCAiK0luZiB3b24ndCBicmVhayB0aGUgdGVzdFxuIg0KfQ0K
ZWxzZSB7DQogICBwcmludCAiUHJvYmxlbTogJyRwaW5mJyBuZSAnJHBpbmZfY2hlY2snXG4iDQp9
DQoNCmlmKCIkbmluZiIgZXEgIiRuaW5mX2NoZWNrIikgew0KICAgcHJpbnQgIi1JbmYgd29uJ3Qg
YnJlYWsgdGhlIHRlc3RcbiINCn0NCmVsc2Ugew0KICAgcHJpbnQgIlByb2JsZW06ICckbmluZicg
bmUgJyRuaW5mX2NoZWNrJ1xuIg0KfQ0KDQppZigiJG5hbiIgZXEgIiRuYW5fY2hlY2siKSB7DQog
ICBwcmludCAiTmFOIHdvbid0IGJyZWFrIHRoZSB0ZXN0XG4iDQp9DQplbHNlIHsNCiAgIHByaW50
ICJQcm9ibGVtOiAnJG5hbicgbmUgJyRuYW5fY2hlY2snXG4iDQp9
--00000000000060c5ef0596f8d23c--
0
sisyphus359
11/10/2019 7:18:16 AM
Reply: