perl is generating different ptest results between the core-image-sato and core-image-sato-sdk images. Specifically: core-image-sato: https://autobuilder.yocto.io/pub/non-release/20190417-10/testresults/qemux86-64-ptest/testresults.json Recipe | Passed | Failed | Skipped | perl | 2425 | 20 | 235 | core-image-sato-sdk: https://autobuilder.yocto.io/pub/non-release/20190417-14/testresults/qemux86-64-ptest/testresults.json Recipe | Passed | Failed | Skipped | perl | 2430 | 19 | 231 |
Created attachment 4495 [details] ptest log from core-image-sato build
Created attachment 4496 [details] ptest log from core-image-sato-sdk build
Needs gcc dependency.
A core-image-minimal image shows: perl | 2423 | 19 | 238 |
Matthew is trying to limit the test run to just one. Have any of you done that before? I looked yesterday but my perl-foo is weak and the 'make test' back-end is perly!
To run a perl test individually: ``` cd /usr/lib/perl/ptest/t/ ./perl harness ../foo/boo.t ``` In my case, lib/warnings is the only inconsistent test, i have to run `./perl harness ../lib/warnings.t` Hope it helps anyone who runs into this in the future.
As opposed from the large number of different ptest results previous reported, there is only one inconsistent ptest that's failing: lib/warnings ``` PROG: require '../loc_tools.pl'; unless (locales_enabled()) { print("SKIPPED\n# locales not available\n"),exit; } eval { require POSIX; POSIX->import("locale_h") }; if ($@) { print("SKIPPED\n# no POSIX\n"),exit; } my $utf8_locale = find_utf8_ctype_locale(); unless ($utf8_locale) { print("SKIPPED\n# No UTF-8 locale available\n"),exit; } use warnings 'locale'; use locale; setlocale(&POSIX::LC_CTYPE, "C"); "abc def" =~ /\b{wb}.*?/; "abc def" =~ /\B{wb}.*?/; setlocale(&POSIX::LC_CTYPE, $utf8_locale); "abc def" =~ /\b{wb}.*?/; "abc def" =~ /\B{wb}.*?/; EXPECTED: Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 16. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 16. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17. GOT: Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 16, <DATA> line 47. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 16, <DATA> line 47. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17, <DATA> line 47. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17, <DATA> line 47. Use of \b{} or \B{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale at - line 17, <DATA> line 47. # Failed test 704 - \b{} in UTF-8 locale at lib/warnings/regexec line 189 FAIL: lib/warnings ``` It fails only in core-image-sato, all tests passed in core-image-sato-sdk. I'm currently working on this.
Patch submitted. https://patchwork.openembedded.org/patch/170483/ Testing locally after applying this patch, all perl ptests passed for core-image-minimal, core-image-sato and core-image-sato-sdk.
(In reply to comment #8) > Patch submitted. https://patchwork.openembedded.org/patch/170483/ > > Testing locally after applying this patch, all perl ptests passed for > core-image-minimal, core-image-sato and core-image-sato-sdk. v2 to fix incorrect format https://patchwork.openembedded.org/patch/170485/
Fixed https://git.openembedded.org/openembedded-core/commit/?id=5198aa954ad0bffb7d6609e5118f642a59595b18
Thanks for fixing this, much appreciated!