Bug#982849: Occasional t/exception.t test failure
Jonas Smedegaard
jonas at jones.dk
Sat Jun 19 11:53:31 BST 2021
Thanks, Sandro!
Quoting Sandro Mani (2021-02-15 11:38:10)
> t/exception.t occasionally fails as follows
>
> # Failed test 'detect licensing "(GPL-2+ and/or LGPL-2.1+) with SDC
> exception" for sdc.py'
> # at t/exception.t line 179.
> # +---------------------------------+----+---------------------------------+
> # | GOT | OP | CHECK |
> # +---------------------------------+----+---------------------------------+
> # | (GPL-2+ and/or LGPL-2.1) with S | eq | (GPL-2+ and/or LGPL-2.1+) with |
> # | DC exception | | SDC exception |
> # +---------------------------------+----+---------------------------------+
> # Seeded srand with seed '20210215' from local date.
> t/exception.t .. Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/44 subtests
There is two parts to this issue:
Main issue is that results are not deterministic. That issue is in Perl
module Regexp::Pattern::License, now tracked at
https://bugs.debian.org/989912 thanks to Walter Lozano.
The other issue, masked by above (most of the time but not always, which
was driving me crazy until you filed this report), is that the the test
is wrongly matched as "GPL-2+ and/or LGPL-2.1" with above bug fixed.
This is most likely an issue in Licensecheck itself related to the
complex mixture of legacy custom patterns and structured
Regexp::Pattern::License patterns...
> To reproduce:
>
> cd App-Licensecheck-v3.1.1
> while true; do PERL_DL_NONLAZY=1 "/usr/bin/perl"
> "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
> *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
> t/exception.t || break; done
Very helpful, thanks!
The issue is unrelated to installer, so this simpler command suffice:
while true; do prove -l t/exception.t || break; done
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20210619/ac9a2fd1/attachment-0001.sig>
More information about the pkg-perl-maintainers
mailing list